summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database/database.hpp2
-rw-r--r--src/xmpp/biboumi_adhoc_commands.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp
index 5f637bd..f6b9d52 100644
--- a/src/database/database.hpp
+++ b/src/database/database.hpp
@@ -86,7 +86,7 @@ class Database
struct Address: Column<std::string> { static constexpr auto name = "address_"; };
- struct ThrottleLimit: Column<std::size_t> { static constexpr auto name = "throttlelimit_";
+ struct ThrottleLimit: Column<unsigned long int> { static constexpr auto name = "throttlelimit_";
ThrottleLimit(): Column<std::size_t>(10) {} };
using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>;
diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp
index da37cc0..45557aa 100644
--- a/src/xmpp/biboumi_adhoc_commands.cpp
+++ b/src/xmpp/biboumi_adhoc_commands.cpp
@@ -494,7 +494,7 @@ void ConfigureIrcServerStep2(XmppComponent& xmpp_component, AdhocSession& sessio
else if (field->get_tag("var") == "throttle_limit" && value)
{
- options.col<Database::ThrottleLimit>() = std::stoull(value->get_inner());
+ options.col<Database::ThrottleLimit>() = std::stoul(value->get_inner());
Bridge* bridge = biboumi_component.find_user_bridge(session.get_owner_jid());
if (bridge)
{