From 89e038bc3a6d1845f2ed450c71cdb3adb29e974a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sat, 4 Aug 2018 15:11:59 +0200 Subject: Fix the real_type of ThrottleLimit --- src/database/database.hpp | 2 +- src/xmpp/biboumi_adhoc_commands.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 { static constexpr auto name = "address_"; }; - struct ThrottleLimit: Column { static constexpr auto name = "throttlelimit_"; + struct ThrottleLimit: Column { static constexpr auto name = "throttlelimit_"; ThrottleLimit(): Column(10) {} }; using MucLogLineTable = Table; 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() = std::stoull(value->get_inner()); + options.col() = std::stoul(value->get_inner()); Bridge* bridge = biboumi_component.find_user_bridge(session.get_owner_jid()); if (bridge) { -- cgit v1.2.3