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
louiz’
992fa93895
Add get_first_non_empty and use it into Database to simplify a little bit
2016-08-21 01:51:52 +02:00
louiz’
7d05f9b6ae
Fix the author of the IRC invite
2016-08-18 21:13:42 +02:00
louiz’
4c8fb9a0e3
Forward IRC invites to XMPP
2016-08-18 20:33:41 +02:00
louiz’
5406de35a3
On a client error, do not QUIT, just make the resource leave all channels
...
This should fix #3205
2016-08-17 20:47:33 +02:00
louiz’
663d4ad54a
Forward mediated invitations (XMPP to IRC only)
2016-08-16 15:59:00 +02:00
louiz’
6bbab9d943
Add ping to the disco info of the gateay
2016-08-16 10:44:13 +02:00
louiz’
787563722c
Only save the messages into the db if we are actually using a db
2016-08-13 01:46:11 +02:00
louiz’
8ec823be4f
Save received and sent messages into the database
2016-08-12 16:39:19 +02:00
louiz’
0d2dd71de5
Don’t use ! as the separator for nicknames, use % instead
...
It’s now easier to use. The distinction between a nick and a channel name is
based on the first character (by default it's '#' and '&'). The user doesn’t
have to worry about which separator to use anymore.
fix #3066
2016-08-10 15:48:28 +02:00
louiz’
f0a25ccda4
Lower case the nick, when forwarding a version or ping request
2016-08-03 11:46:13 +02:00
louiz’
58000c36a6
Rephrase an error message
2016-08-01 09:48:58 +02:00
louiz’
f89361c370
Provide a --help option
...
fix #3183
2016-07-31 18:16:29 +02:00
louiz’
085a48ea48
Do not use the logger before the configuration has been loaded first
2016-07-28 11:56:33 +02:00
louiz’
db503b23e8
Use log_error instead of cerr
2016-07-24 20:03:34 +02:00
louiz’
24824a5015
In reload.cpp, only build the database things if litesql is used
2016-07-18 09:53:15 +02:00
louiz’
9fb2e116c4
Move reload.*pp from louloulibs to src
2016-07-12 01:15:34 +02:00
louiz’
4c1b9abe7e
Properly catch and handle database errors
...
Do not use a singleton for the database.
fix #3203
2016-07-12 00:31:57 +02:00
louiz’
03feb403f8
Send the iq requests to one random resource instead of the bare JID
2016-07-04 18:49:00 +02:00
louiz’
81f8f45b37
Replace all include guards by #pragma once
...
It’s $CURRENT_YEAR
2016-07-04 17:53:53 +02:00
louiz’
5321d29cbd
List of channels are saved per-request and not globally
...
The list would keep the previous results in memory, forever, and the list
would grow each time a new request was made (even with results from
unrelated servers)…
2016-07-04 17:00:05 +02:00
louiz’
964784497a
Remove forgotten comment
2016-07-04 10:20:16 +02:00
louiz’
0ce75ab521
Properly remove the resource from the server when we leave the last channel
2016-07-03 16:01:15 +02:00
louiz’
fcb2681b7b
Log a warning when we receive an iq without a from
2016-06-24 11:24:40 +02:00
louiz’
7d2a2dc8cc
Forward ping requests from IRC to XMPP, to one single resource
2016-06-24 11:23:51 +02:00
louiz’
b2e7edeea8
Properly set the “from” of the ping results to the correct full JID
2016-06-24 11:23:01 +02:00
louiz’
6bd9b1ec14
Remove unused function
2016-06-23 22:18:42 +02:00