summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-23 15:21:12 +0200
committerlouiz’ <louiz@louiz.org>2018-08-23 22:18:49 +0200
commit7d0df9b6ddee8db69ea0a511f031f32a4537a749 (patch)
tree86b1105169b6bf7ea5eea88fac3ec75597231d38 /src/database
parent6c431b64d050a13853ebf3715fb6bf7986c0cff1 (diff)
downloadbiboumi-7d0df9b6ddee8db69ea0a511f031f32a4537a749.tar.gz
biboumi-7d0df9b6ddee8db69ea0a511f031f32a4537a749.tar.bz2
biboumi-7d0df9b6ddee8db69ea0a511f031f32a4537a749.tar.xz
biboumi-7d0df9b6ddee8db69ea0a511f031f32a4537a749.zip
Disable the throttle limit if negative
Also, invalid values result in -1 being set
Diffstat (limited to 'src/database')
-rw-r--r--src/database/database.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp
index 5fabadd..4a413be 100644
--- a/src/database/database.hpp
+++ b/src/database/database.hpp
@@ -86,8 +86,8 @@ class Database
struct Address: Column<std::string> { static constexpr auto name = "address_"; };
- struct ThrottleLimit: Column<unsigned long int> { static constexpr auto name = "throttlelimit_";
- ThrottleLimit(): Column<unsigned long int>(10) {} };
+ struct ThrottleLimit: Column<long int> { static constexpr auto name = "throttlelimit_";
+ ThrottleLimit(): Column<long int>(10) {} };
using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>;
using MucLogLine = MucLogLineTable::RowType;