diff options
author | louiz’ <louiz@louiz.org> | 2016-08-23 00:28:12 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-23 01:28:12 +0200 |
commit | 88499d037962b4a0bd85d812cb77ef0452c985f8 (patch) | |
tree | b36ce26801962f529fd96093cd6fccaf0233c713 /src/database/database.hpp | |
parent | 91285d144d9ff8692a812840985cf2501e6b71c5 (diff) | |
download | biboumi-88499d037962b4a0bd85d812cb77ef0452c985f8.tar.gz biboumi-88499d037962b4a0bd85d812cb77ef0452c985f8.tar.bz2 biboumi-88499d037962b4a0bd85d812cb77ef0452c985f8.tar.xz biboumi-88499d037962b4a0bd85d812cb77ef0452c985f8.zip |
If the maxHistoryLength is negative, make it 0
Instead of doing a broken SQL request that returns weird lines
Diffstat (limited to 'src/database/database.hpp')
-rw-r--r-- | src/database/database.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp index 14012ff..e7fdd5f 100644 --- a/src/database/database.hpp +++ b/src/database/database.hpp @@ -49,7 +49,7 @@ public: const std::string& server, const std::string& channel); static std::vector<db::MucLogLine> get_muc_logs(const std::string& owner, const std::string& chan_name, const std::string& server, - const int limit); + int limit); static void store_muc_message(const std::string& owner, const Iid& iid, time_point date, const std::string& body, const std::string& nick); |