louiz’
e217a19784
Fix the build without systemd, by adding a few define
2017-09-09 17:21:51 +02:00
louiz’
bfcf294517
Add the persistent_by_default configuration option
...
fix #3293
2017-09-09 17:09:17 +02:00
louiz’
8d99374f1f
When biboumi is logging into journald, use sd_journal_send
...
This makes sure that multi-lines messages are properly parsed as a single
message by journald.
fix #3268
2017-09-06 21:30:44 +02:00
louiz’
dabc48b79b
Mark messages from the IRC server as private and no-copy
...
fix #3284
2017-08-30 16:14:35 +02:00
louiz’
98227db6ad
Remove a forgotten and useless comment
...
[skip-ci]
2017-08-27 22:41:18 +02:00
louiz’
fcaffb9e77
Add support for the "history" node on MUC join
...
Supports the "seconds", "maxstanzas", "since" and "maxchars" (but only =0)
attributes.
fix #3270
2017-08-27 22:37:46 +02:00
louiz’
25243f53c2
In fixed mode, server messages come from biboumi’s hostname directly
...
Instead of irc.example.com@biboumi, because that’s actually user named
“irc.example.com”, in that case.
And that fixes the raw messages in fixed mode.
fix #3286
2017-08-27 14:32:29 +02:00
louiz’
2c717d347d
Add an index for the muc_log_line table
...
This immensely speeds up the archive select queries.
fix #3292
2017-08-26 17:42:59 +02:00
louiz’
655151d88a
Cache the encoding_in database value, to avoid doing a query for each message
2017-08-26 13:51:15 +02:00
louiz’
1997fb5c6a
Small refactor in on_quit()
2017-08-24 23:56:00 +02:00
louiz’
c23c99dac1
Don’t forget to remove the user from the channel, when kicked
...
fix #3291
2017-08-24 23:55:32 +02:00
louiz’
2a62b8b082
Fix a sqlite3 leak when the database fails to open
2017-08-19 13:02:34 +02:00
louiz’
9648fd286c
Display the correct error message when we fail to open the sqlite3 db
...
fix #3290
2017-08-19 13:02:13 +02:00
louiz’
cad70ba453
Re-add a removed (by mistake) pointer null check
2017-08-02 22:00:28 +02:00
louiz’
308869aa73
Do not ignore empty values when receiving a data form
...
Otherwise, these fields cannot be emptied by the user
fix #3281
2017-07-21 17:27:03 +02:00
louiz’
f125de4833
Add the possibility to invite any external JID to a room
...
fix #3285
2017-07-20 23:09:37 +02:00
louiz’
407f95a108
Do not reply with an error when receiving a presence for a user JID
...
fix #3224
2017-07-20 21:34:27 +02:00
louiz’
24f2511d7b
In fixed mode, fix the iid type of the component JID
2017-07-20 21:28:18 +02:00
louiz’
ffb402f0ad
Drop support for botan < 2.0
...
fix #3274
2017-07-20 21:22:58 +02:00
louiz’
f7cbe8531d
Correctly remove the last resource from the channel, in persistent mode
...
fix #3277
2017-07-16 20:22:23 +02:00
louiz’
729ea131c9
Send an unsubscribed presence on a probe if we don’t have a roster entry
2017-07-16 00:16:43 +02:00
louiz’
50a2bd736e
Answer to presences of type='probe'
2017-07-16 00:16:43 +02:00
louiz’
dd343609d5
Only send the IRC server presence if the user has this JID in their roster
2017-07-16 00:16:43 +02:00
louiz’
f9a6f97396
Implement the roster presences from IRC servers
2017-07-16 00:16:43 +02:00
louiz’
368bb82818
Send an additional unsubscribed presence when receiving an unsubscribe one
2017-07-16 00:16:43 +02:00
louiz’
71f125db1a
Send responses when we receive an unsubscribed presence
2017-07-16 00:16:43 +02:00
louiz’
84034ed3dc
Use a db roster to manage biboumi’s presence with the contacts
2017-07-16 00:16:43 +02:00
louiz’
b233470710
Send the 332 status only for our own presences
2017-07-14 15:18:01 +02:00
louiz’
8232c2cccc
Remove an unused variable
2017-07-08 19:21:53 +02:00
louiz’
3974371e7b
Replace a function argument from ... to the template Args&&... thing
2017-07-08 19:07:53 +02:00
louiz’
fd7ee48a86
Remove many log_debug from the database module
2017-07-08 18:11:25 +02:00
louiz’
9fa1852c7e
Send status code='332' on biboumi or IRC server’s shutdown
2017-07-08 18:10:47 +02:00
louiz’
3a95076db4
Send a 110 status code on a QUIT received for ourself
2017-07-08 17:07:29 +02:00
louiz’
faed8952cb
Remove a bunch of useless string_literal usage
2017-07-08 14:04:35 +02:00
louiz’
7a9b2dca06
Use a more precise return type, instead of auto
2017-07-08 12:37:03 +02:00
louiz’
cf56b60fd3
Remove all the empty “options” members in Column classes
...
By using SFINAE to use that member only when it exists.
2017-07-08 12:36:08 +02:00
louiz’
43b5b696a3
Add some scopes around various XmlSubNode
2017-07-06 22:38:09 +02:00
louiz’
9f7782bb0c
Add a global “persistent” option
2017-07-06 22:24:42 +02:00
louiz’
b71ca15a0f
Move a few functions from select_query to query
2017-06-23 00:13:38 +02:00
louiz’
8a7166eef9
Set the database pointer to nullptr after a close
2017-06-22 16:14:00 +02:00
louiz’
4d55a120d8
Re-implement correctly the handling of failure to open the database
...
If we can’t open it at startup, we exit.
If we can’t open it on reload, we keep the previously-opened database.
This way, we’re assured to always have a valid and open database available.
2017-06-21 17:41:03 +02:00
louiz’
e75d7ad8ea
Add a Record History option in the Channel configuration form
...
fix #3269
2017-06-16 10:48:54 +02:00
louiz’
40db183e37
Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table
...
ref #3269
2017-06-16 09:54:36 +02:00
louiz’
4a963cc480
At startup, upgrade all database tables by adding missing columns
2017-06-16 09:53:49 +02:00
louiz’
a77c982f63
Fix cstdint -> cstddef, to fix compilation on freebsd
2017-06-14 18:47:01 +02:00
louiz’
34ed2cc1a9
Explicitely declare the add_param<Id> specialization
2017-06-14 17:25:15 +02:00
louiz’
5834dd53f3
Add a 0 default value for template argument N
2017-06-14 16:21:23 +02:00
louiz’
2677ac42e8
Fix compilation (many warnings, and a linkage error) with clang++
2017-06-14 10:46:44 +02:00
louiz’
dac19da4c7
Fix an inversion of tlsPorts_ and ports_
2017-06-14 10:46:44 +02:00
louiz’
8d1d822edf
Explicitely close the Database before re-opening it
2017-06-14 00:19:15 +02:00