Commit Graph
595 Commits
Author SHA1 Message Date
louiz’ 75778f4187 Add some missing includes 2016-12-07 18:29:02 +01:00
louiz’ eb8f1cbc07 Avoid a potential nullptr dereference 2016-12-04 23:06:59 +01:00
louiz’ 732f53d798 Clean a few more things 2016-12-04 16:15:21 +01:00
louiz’ ad22be4171 Do not fail to build if litesql is not there 2016-11-25 09:22:24 +01:00
louiz’ b5a7c66bea fix an “unused parameter” warning 2016-11-16 20:30:16 +01:00
louiz’ 4ab3cd653f Fix some little compilation errors with some configs, from last commit 2016-11-15 00:49:55 +01:00
louiz’ d872c2b492 Support the ident protocol
fix #3211
2016-11-15 00:23:19 +01:00
louiz’ 0c8adc85f7 Move all the connect() logic from TCPSocketHandler into a subclass
This way, TCPSocketHandler only deal with the message sending/receiving, not
the connect() or anything else.  This will be used for implementing servers
(because when a client is accepted, we don’t need all the connect() and dns
resolution stuff).
2016-11-11 02:54:48 +01:00
louiz’ b5beb04332 Remove a never reached (and non-sensical) error 2016-11-07 21:57:39 +01:00
louiz’ a52baa52e2 Workaround for debian and other old OS that do not have std::put_time 2016-11-07 20:26:28 +01:00
louiz’ 597cfce4b8 Add <algorithm> back 2016-11-07 14:52:08 +01:00
louiz’ 962bac476c Trivial refactor of get_user_bridge function 2016-11-07 14:43:52 +01:00
louiz’ 7376831bc8 Add get-irc-connection-info adhoc command
fix #3171
2016-11-07 14:43:07 +01:00
louiz’ c70301e503 Fix the presences sent, when multiple resources join the virtual channel
fix #3216
2016-11-02 21:25:26 +01:00
louiz’ e1934a0b5f Disable e2e tests on openbsd 2016-11-01 17:40:09 +01:00
louiz’ ae02e58b9d Some cleanups 2016-10-31 14:03:37 +01:00
louiz’ 1d2f20600a Handle IRC message 341 (invite confirmation) 2016-10-31 01:39:35 +01:00
louiz’ 5990a8bf8a Correctly handle the nick change inside the virtual channel 2016-10-24 00:19:30 +02:00
louiz’ c3bb9fe2e2 Handle forced-join by just sending an invitation
fix #3116
2016-10-23 23:59:21 +02:00
louiz’ 00eb18bae8 Refactor channel->parting to a new location 2016-10-23 23:58:03 +02:00
louiz’ dfc0793ef2 Include a private and no-copy nodes in private <message/> to avoid carbon duplication 2016-10-11 00:43:46 +02:00
louiz’ 116472920c Fix the muc#traffic response
Was completely broken, and the test was just useless
2016-10-07 23:29:14 +02:00
louiz’ 8ac8d2b242 Correctly set status="110" in the presence for the target of a kick 2016-10-07 23:28:40 +02:00
louiz’ 0049b3e32d Remove a potential nullptr dereference, on mam queryid
fix coverity CID 153376
2016-10-06 22:29:47 +02:00
louiz’ 3620d533ee Avoid sending PART command for unjoined channels
fix #3205
2016-10-05 00:18:22 +02:00
louiz’ 1d197ff26c Respond to muc#traffic requests
fix #3069
2016-10-04 19:32:45 +02:00
louiz’ 28f1dd7654 Make version requests work with global user JIDs as well
fix #3210
2016-10-03 21:35:16 +02:00
louiz’ b29225601a Fix some compilation warning/errors that appear on FreeBSD 2016-10-03 17:58:16 +02:00
louiz’ 729078a238 Add missing include file 2016-10-03 01:11:54 +02:00
louiz’ 76a8189b46 Implement result-set-management for LIST queries
ref #2948
2016-10-03 01:08:48 +02:00
louiz’ ffad4306b9 Use LIST * instead of just LIST, because some servers don’t accept it
Also add a e2e test for the list query
2016-10-02 12:57:04 +02:00
louiz’ 265b5df61b Re-add the ad-hoc command the was removed by mistake in the previous commit
Thank you, e2e tests
2016-09-29 23:10:41 +02:00
louiz’ ee4cf5dc2d Add AdhocCommandHandlers::add_command to simplify the usage of this class
And make things a little bit clearer
2016-09-29 20:53:40 +02:00
louiz’ 363a0bf02c Look for uuid/uuid.h instead of just uuid.h
Avoids a conflict between /usr/include/uuid.h and
/usr/local/include/uuid/uuid.h on freebsd
2016-09-29 20:11:35 +02:00
louiz’ 2922c68e83 Respond to disco#info requests on IRC server JIDs
This makes it possible to execute an ad-hoc command on a server, with
clients like Gajim, for example.
2016-09-22 19:01:31 +02:00
louiz’ 07e2209596 Add the missing & for 3 std::string function arguments 2016-09-22 00:00:13 +02:00
louiz’ 35fc5d6f29 Some little style/typo fixes 2016-09-21 20:38:14 +02:00
louiz’ 93ebf45f30 Make history messages work with fixed_irc_server
fix #3209
2016-09-20 19:02:12 +02:00
louiz’ 2c6132f3ee Add 2 missing namespaces in our disco#info result 2016-09-04 23:11:42 +02:00
louiz’ 3047bd41b2 MAM results can be filtered by start and end dates 2016-09-04 22:58:38 +02:00
louiz’ 7536a1b3f3 Respond to MAM requests on a channel JID
At the moment, result-set-management is not implemented, the whole history
(well, at most 1024 messages) is returned.
2016-08-28 22:42:50 +02:00
louiz’ 00e88f6b2a Add missing algorithm include 2016-08-22 20:28:37 +02:00
louiz’ 1ffc367753 Send the muc history when a second (or more) resource joins a room 2016-08-23 03:30:40 +02:00
louiz’ 88499d0379 If the maxHistoryLength is negative, make it 0
Instead of doing a broken SQL request that returns weird lines
2016-08-23 01:28:12 +02:00
louiz’ cfebca4d7c Only save the logs if recordHistory global config option is true 2016-08-23 01:11:51 +02:00
louiz’ e13d3fdf4d Move get_first_non_empty to louloulibs/utils 2016-08-22 21:29:22 +02:00
louiz’ 38a4bcb2d2 Only save messages coming from real MUC participants in the database
Not messages coming from the room, for example
2016-08-22 00:47:55 +02:00
louiz’ d1626c929f When joining a channel, send the most recent history found in the database 2016-08-22 00:44:17 +02:00
louiz’ 593b326827 When saving the logs, the date must be in seconds, not nanoseconds 2016-08-22 00:39:11 +02:00
louiz’ 6776b827d2 Add a global configure ad-hoc command, with max history length 2016-08-22 00:38:44 +02:00