If the maxHistoryLength is negative, make it 0

Instead of doing a broken SQL request that returns weird lines
This commit is contained in:
louiz’
2016-08-23 01:28:12 +02:00
parent 91285d144d
commit 88499d0379
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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);