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’
|
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’
|
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’
|
8ec823be4f
|
Save received and sent messages into the database
|
2016-08-12 16:39:19 +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’
|
81f8f45b37
|
Replace all include guards by #pragma once
It’s $CURRENT_YEAR
|
2016-07-04 17:53:53 +02:00 |
|
louiz’
|
af42073830
|
Style fix
Move all constructors at the top of classes
|
2016-05-04 14:16:40 +02:00 |
|
Florent Le Coz
|
421c960df5
|
Add a ChannelOptions table in the DB
And a way to retrieve its values, defaulting on the ServerOptions for unset
values.
|
2016-01-04 13:47:26 +01:00 |
|
Florent Le Coz
|
580b721ba5
|
Remove a write to std::cout from Database’s constructor
|
2015-10-29 03:35:25 +01:00 |
|
Florent Le Coz
|
74c73799ab
|
Only compile database.cpp if configured with litesql
|
2015-10-24 15:17:53 +02:00 |
|
Florent Le Coz
|
88ae2599f6
|
Introduce an optional Database module
Uses litesql
|
2015-09-18 22:09:26 +02:00 |
|