summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-26 19:36:42 +0000
committerSadie Powell <sadie@witchery.services>2024-03-08 11:07:30 +0000
commit46b70648342daf1d3c482f24b14c125a31c0bfca (patch)
tree51daa9aaa93251fc05a32e7d9f6b68c99aa61b0d /modules
parentbb8df01e254f7bdb5f518d2714d3e820c2207c62 (diff)
Keep the InspIRCd protocol version around for later use.
Diffstat (limited to 'modules')
-rw-r--r--modules/protocol/inspircd.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp
index 769ee9029..1d9eb1009 100644
--- a/modules/protocol/inspircd.cpp
+++ b/modules/protocol/inspircd.cpp
@@ -45,6 +45,9 @@ namespace
// Non-introduced users who have authenticated via SASL.
std::list<SASLUser> saslusers;
+ // The version of the InspIRCd protocol that we are using.
+ size_t spanningtree_proto_ver = 1205;
+
// Parses a module name in the format "m_foo.so=bar" to {foo, bar}.
void ParseModule(const Anope::string &module, Anope::string &modname, Anope::string &moddata)
{
@@ -1010,9 +1013,9 @@ struct IRCDMessageCapab final
{
if (params[0].equals_cs("START"))
{
- unsigned int spanningtree_proto_ver = 0;
+ spanningtree_proto_ver = 0;
if (params.size() >= 2)
- spanningtree_proto_ver = params[1].is_pos_number_only() ? convertTo<unsigned>(params[1]) : 0;
+ spanningtree_proto_ver = params[1].is_pos_number_only() ? convertTo<size_t>(params[1]) : 0;
if (spanningtree_proto_ver < 1205)
{