summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-23 23:58:32 +0200
committerlouiz’ <louiz@louiz.org>2018-08-24 22:49:31 +0200
commita3e865ad63a1c0d634001d9d2e86c425bc5094e5 (patch)
tree80e3d1ff2a7bd959926e5c7ab726558a153e3ce2 /src/irc
parent7d0df9b6ddee8db69ea0a511f031f32a4537a749 (diff)
downloadbiboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.tar.gz
biboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.tar.bz2
biboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.tar.xz
biboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.zip
Fix a signed/unsigned mismatch
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp2
-rw-r--r--src/irc/irc_client.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 2835a33..0b5715e 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -1248,7 +1248,7 @@ void IrcClient::on_channel_mode(const IrcMessage& message)
}
}
-void IrcClient::set_throttle_limit(std::size_t limit)
+void IrcClient::set_throttle_limit(long int limit)
{
this->tokens_bucket.set_limit(limit);
}
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index 1653225..416eb30 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -301,7 +301,7 @@ public:
const std::vector<char>& get_sorted_user_modes() const { return this->sorted_user_modes; }
std::set<char> get_chantypes() const { return this->chantypes; }
- void set_throttle_limit(std::size_t limit);
+ void set_throttle_limit(long int limit);
/**
* Store the history limit that the client asked when joining this room.
*/