Commit Graph
715 Commits
Author SHA1 Message Date
louiz’ c13f3005e6 Use a “complete” action for the last step of ad-hoc commands instead of next 2019-09-14 11:50:21 +02:00
louiz’ f1936fdd08 Actually fix that correctly instead of the opposite 2019-09-09 22:04:54 +02:00
louiz’ 8a6d053be9 Remove trailing / of fulljids if IRC host is missing 2019-09-09 12:27:27 +02:00
louiz’ 6e30f0c194 Add an error message for udns error DNS_E_NODATA
In cases where the DNS server does not respond “domain not found” but
“domain found, but no IP for that record type”, we just say “domain not
found” too (instead of nothing, previously).
2019-08-30 11:40:42 +02:00
louiz’ 224eb9223f Properly re-convert \01ACTION into a /me when reflected to the sender
fix #3382

It still needs to be fixed properly by cleaning the way we send the messages
in all direction etc. And this is ugly because, with just one message, we do
a conversion in one direction, and then re-convert in the other
direction. But at least it works and users will be happy, even if I’m not
entirely satisfied with the code.
2019-08-25 21:58:07 +02:00
Jonas Schäfer a8ce138dd2 XEP-0410: set not-in-the-room error condition to not-acceptable
XEP-0410 demands that. This changes the error condition for all
pings to the room, even those which aren’t self-pings, if the
sender is not joined.

The conditions of XEP-0410 were based on observing existing
implementations.
2019-08-20 21:42:43 +02:00
Jonas Schäfer b68f36056d XEP-0410: implement server-side optimisation for self-pings
This prevents the ping from round-tripping through IRC and
possibly a random other client of the user. Please see XEP-0410
for the rationale.

Fixes #3385.
2019-08-20 21:42:43 +02:00
louiz’ ce7b8395d0 Add an error message on DNS resolution failure for IPv6 only 2019-07-29 23:14:47 +02:00
Jonas Schäfer 3621458d3f Do not send the IRC host directly as real JID of the user
Fixes #3381
2018-10-04 20:16:17 +02:00
Jonas Schäfer c6749ecce0 Make comment more precise 2018-10-03 20:31:50 +02:00
louiz’ 88fe1783bf Do not change our nick if we send a presence to a non-joined channel
fix #3378
2018-09-17 22:36:59 +02:00
louiz’ b9f6fbd840 Remove an unused function (and a useless debug log) 2018-08-26 18:08:14 +02:00
louiz’ 478619b10a Trivial little syntax changes 2018-08-26 15:42:38 +02:00
louiz’ 248e25c22f Replace a useless shared_ptr by a unique_ptr 2018-08-26 15:41:54 +02:00
louiz’ a3e865ad63 Fix a signed/unsigned mismatch 2018-08-24 22:49:31 +02:00
louiz’ 7d0df9b6dd Disable the throttle limit if negative
Also, invalid values result in -1 being set
2018-08-23 22:18:49 +02:00
louiz’ 6c431b64d0 Fix one more warning 2018-08-23 22:16:42 +02:00
louiz’ 8997021b2e Fix two more warnings 2018-08-23 21:28:06 +02:00
louiz’ b1564e4ddc Fix a bunch of int to unsigned int conversion warnings 2018-08-23 20:31:31 +02:00
louiz’ 0b51e38281 MaxHistoryLength now has some sensible default value if the user set a negative one 2018-08-23 20:30:11 +02:00
louiz’ d7bc737751 Add two missing ref 2018-08-23 18:54:16 +02:00
louiz’ f55b1108cd Add a missing <string> include 2018-08-23 18:54:16 +02:00
louiz’ 9fa7591058 Split the main() into smaller functions
That’s not really enough, but better
2018-08-07 20:49:34 +02:00
louiz’ 89ad479ef4 Remove a useless fill_duration member 2018-08-04 16:04:33 +02:00
louiz’ 89e038bc3a Fix the real_type of ThrottleLimit 2018-08-04 15:11:59 +02:00
louiz’ 782732ba16 Remove a bunch of useless empty lines 2018-08-04 14:50:33 +02:00
louiz’ 6a86b14d05 Rename SetDesc to set_desc, and only define it if USE_DATABASE 2018-07-27 23:06:48 +02:00
Jonas Wielicki b490ba6e56 Make SetDesc static 2018-07-27 23:06:48 +02:00
Jonas Wielicki 4953f7baa5 Fix incorrect setting of field description in Ad-Hoc config forms
The description has to be a child element of the field, not an
attribute.
2018-07-27 23:06:48 +02:00
louiz’ 7a4cea426d Reflect messages to XMPP only when they are actually sent 2018-07-24 23:16:14 +02:00
louiz’ 709fa0e5e9 Remove a useless getter 2018-07-22 14:41:32 +02:00
Romain DEP 85288fd0b3 add 'verify_certificate' as possible configuration token for policy files
This lets the user configure a per-domain certificate validation policy
2018-07-22 14:38:51 +02:00
louiz’ 458ea53db3 Fix a compile error with GCC 5.x
fix #3366
2018-07-14 13:36:53 +02:00
louiz’ 0d886d5f32 Default the throttle limit to 10 if not built with database support 2018-06-26 20:42:21 +02:00
louiz’ 7f8a612c98 Fix a warning (unused variable) in some build config 2018-06-25 22:57:23 +02:00
louiz’ 52166e07ac Trivial syntax improvements 2018-06-25 22:57:13 +02:00
louiz’ 09b10cc801 Throttle all commands sent to IRC servers
fix #3354
2018-06-25 22:54:32 +02:00
louiz’ ba97c442a8 Remove an outdated TODO comment 2018-06-22 21:35:46 +02:00
louiz’ 0b8738d87a Archive the Mode messages, except if they are received for an unjoined chan
fix #3362
2018-06-22 21:35:46 +02:00
louiz’ 21a79b7bad Reject messages from unjoined resources, with an error
fix #3346
2018-06-19 21:33:33 +02:00
louiz’ 2f0e26db4c Channels’ disco#info includes the number of participants
fix #3311
2018-06-17 15:16:49 +02:00
louiz’ 5ff3696d6f Merge branch 'v8' 2018-06-01 12:49:33 +02:00
louiz’ 760076a33a Make the global ad-hoc configure command available in fixed mode
fix #3360
2018-06-01 12:44:40 +02:00
louiz’ 68d86a9daa Merge branch 'v8' 2018-05-23 01:17:36 +02:00
louiz’ 7d3c1ed927 Do not use (or present to the user) the Address field in fixed mode
fix #3359
2018-05-23 01:09:36 +02:00
louiz’ 28d79a9eaa Merge branch 'v8' 2018-05-15 19:58:03 +02:00
louiz’ a8e922fc89 Handle the NAMES message for an already-joined or non-existing channel
If a user manually does a NAMES query, the result were interpreted as a user
list, which is wrong. And with the special * argument, this would even cause
a crash.

Fix #3357
2018-05-15 19:34:58 +02:00
louiz’ 4f6bf078d2 Improve the forward_server_message to concatenate everything 2018-05-15 19:34:54 +02:00
louiz’ ba61d20340 Empty the <command/> nodes before reusing them in our responses
fix #3356
2018-05-14 22:07:29 +02:00
louiz’ ed36c26598 Also handle SIGHUP to reload the configuration
Because that’s what is typically done on other deamons, and we don’t want to
suprise users.
2018-05-06 12:13:09 +02:00