Disable the throttle limit if negative

Also, invalid values result in -1 being set
This commit is contained in:
louiz’
2018-08-23 22:18:49 +02:00
parent 6c431b64d0
commit 7d0df9b6dd
7 changed files with 23 additions and 10 deletions
+2 -2
View File
@@ -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;