Disable the throttle limit if negative
Also, invalid values result in -1 being set
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user