Commit Graph
604 Commits
Author SHA1 Message Date
louiz’ 984d71838e Limit the number of rooms sent by default in the disco#items response
fix #3219
2017-05-08 23:01:21 +02:00
louiz’ da701069dc Little fix and cleanup in the channels list code 2017-05-08 18:47:02 +02:00
louiz’ 0a8a77e64c Fix a segmentation fault when connecting to a server without a port
fix #3260
2017-05-02 15:00:21 +02:00
louiz’ 7b3e0e0cf3 Make botan’s policy configurable from a file
fix #3244
2017-04-30 15:14:54 +02:00
louiz’ 3af9d0ac67 Make sure we don’t exceed 512 bytes when grouping JOINs 2017-04-21 22:55:24 +02:00
louiz’ f588ce071e Group simultaneous JOINs into a single command, to avoid flooding
We still split the JOINs with a key and the ones without
2017-04-21 22:47:25 +02:00
louiz’ eac144acda Configuration options can be overridden by setting env values 2017-04-21 11:19:36 +02:00
louiz’ cf87cf0892 Better way to init the msghdr fields 2017-04-20 15:44:46 +02:00
louiz’ 69fd6cc4c3 Explicitely init the msghdr fields, to be compatible with any implementation 2017-04-20 19:14:59 +02:00
louiz’ 5ef674c486 Revert "Add a linger_time configuration option on IRC servers"
This reverts commit 5d801ddcd0.
2017-04-20 10:12:00 +02:00
louiz’ e3ee824e5c Revert "Cancel the IRC server linger timer when we try to-rejoin a channel on it"
This reverts commit 45f7396c8d.
2017-04-20 10:09:35 +02:00
louiz’ 51696c091c Make sure the channel is joined before trying to leave it
fix #3243
2017-04-19 23:33:48 +02:00
louiz 47ff1cd311 Merge branch 'mam_default_limit' into 'master'
Limit of 100 MAM messages, if no other limit has been set by the client

Closes #3256

See merge request !9
2017-04-19 23:15:49 +02:00
louiz’ 727d887d7b Fix wrong JID computing when sending iq ping or version in fixed mode
fix #3259
2017-04-20 00:24:59 +02:00
louiz’ 54fa739d6b Limit of 100 MAM messages, if no other limit has been set by the client
fix #3256
2017-04-19 23:02:08 +02:00
louiz’ 3238404753 Avoid adding more that one “XMPP reconnection” timed event at the same time
Fix a semblance of infinite and busy loop, that could occur if biboumi’s
poller is woken up multiple times while the XMPP server is not reachable.
2017-04-17 14:47:21 +02:00
louiz’ 3a8203c366 Handle the RSM "max" value in the MAM requests
fix #3255
2017-04-12 17:07:39 +02:00
louiz’ 68d6b82940 Properly handle multiline topics
fix #3254
2017-04-09 23:05:32 +02:00
louiz’ 8a912ea3a3 Apply a few clang-tidy cppcoreguidelines-* fixes 2017-04-07 11:10:51 +02:00
louiz’ be9c577de8 Apply all the clang-tidy performance-* fixes 2017-04-07 19:01:49 +02:00
louiz’ ccb4ee098f Apply all the clang-tidy misc-* fixes 2017-04-07 18:53:12 +02:00
louiz’ 5402a256d1 Apply all the clang-tidy modernize-* fixes 2017-04-07 18:45:24 +02:00
louiz’ 0878a0342c Do not allow pings from resources that aren’t in the channel
fix #3252
2017-04-04 21:38:53 +02:00
louiz’ e4cc69607c Handle some iq of type='error' as valid ping response
fix #3251
2017-04-04 18:40:30 +02:00
louiz’ 7f2127a7ea Add the archive ID to messages when they are sent to users
This makes us compatible with mam 6.0

fix #3249
2017-03-30 18:16:44 +02:00
louiz’ 1a09c965eb Remove two sneaky log_debug 2017-03-29 23:32:43 +02:00
louiz’ 52b795d119 Add a missing namespace in the server disco#info response 2017-03-29 16:28:25 +02:00
louiz’ ce2daa5ea0 Respond to disco#info on MUC JIDs
Otherwise, some client won’t do MAM, since they don’t know biboumi supports
it.
2017-03-29 16:28:25 +02:00
louiz’ e8ccfe97be Add a missing “pass by reference” 2017-03-29 16:28:25 +02:00
louiz’ a3844c1d9f Change mam namespace to mam:2, instead of mam:1 2017-03-29 16:28:25 +02:00
louiz’ 55f7434925 Do not remove our resources if the QUIT message doesn't come from us 2017-03-27 11:49:07 +02:00
louiz’ b7789fe586 Add a Persistent option on channels
fix #3230
2017-03-27 11:49:07 +02:00
louiz’ 28a537a90a Make things work with botan < 1.11.34 2017-03-14 21:47:09 +01:00
louiz’ 0ab40dc1ab Refactoring louloulibs and cmake
Use OBJECT libraries
Remove the louloulibs directory
Write FOUND variables in the cache
2017-03-14 21:45:23 +01:00
louiz’ a0a2de3b4d Revert "Don’t send the unavailable presence to all resources, in the virtual channel"
This reverts commit 38ff50f5d2.
2017-03-08 22:28:00 +01:00
louiz’ 38ff50f5d2 Don’t send the unavailable presence to all resources, in the virtual channel 2017-03-08 22:09:57 +01:00
louiz’ f0bc6c83a8 Pass the shared_ptr by reference, to avoid useless copies 2017-03-08 19:04:15 +01:00
louiz’ 99a4ddedaf Remove the embedded sha1 code, and use one of botan or gcrypt
This adds a hard dependency on one of Botan or gcrypt. Botan is already a
recommended dependency, and gcrypt is probably packaged almost everywhere,
so this should not be a big deal.

ref #3241
2017-03-06 00:57:33 +01:00
louiz’ d81c3ad5ac Fix the order of from and to address in muc traffic info reply
And add a test for it.

fix #3238
2017-03-04 14:03:08 +01:00
louiz’ 3a288340df Fix the previous commit
fix #3231
2017-02-13 10:21:25 +01:00
louiz’ 8b2f748b1d Do not send a not-connected error, on "unavailable" presences
fix #3231
2017-02-13 10:00:49 +01:00
louiz’ 7d41577bc4 The form fields in the Configure ad-hoc commands are not required 2017-02-12 15:11:13 +01:00
louiz’ e2da6fcddd Properly destroy the dns_handler socket when first start fails
To correctly exit the process
2017-02-01 20:52:50 +01:00
louiz’ 45f7396c8d Cancel the IRC server linger timer when we try to-rejoin a channel on it 2017-01-25 19:55:45 +01:00
louiz’ b660a47367 grammar: than <-> as 2017-01-22 21:32:37 +01:00
louiz’ 5d801ddcd0 Add a linger_time configuration option on IRC servers 2017-01-22 21:31:50 +01:00
louiz’ 3ae4937fb4 Add missing <algorithm> include for last commit 2017-01-10 00:21:15 +01:00
louiz’ 6ececd9f39 Only try to join chans only once, even if we received multiple presences
ref #3228
2017-01-10 00:18:59 +01:00
louiz’ e31ff3e9e9 Fix some issues found by sonar cube 2017-01-06 23:45:26 +01:00
louiz’ 5b56007828 Use udns instead of c-ares
fix #3226
2017-01-06 22:58:18 +01:00