diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-12 12:22:57 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-12 12:24:02 +0000 |
commit | 06add0e5fc1b83b43014e731cb94229ab2be66f6 (patch) | |
tree | 16e08617a2e81a6bc8f44ab513e056a792bb07c2 /modules/protocol/ngircd.cpp | |
parent | 63d682314b7eb3f6e25ecf4ba81dc3bb17270f0e (diff) |
Simplify limit extraction code.
Diffstat (limited to 'modules/protocol/ngircd.cpp')
-rw-r--r-- | modules/protocol/ngircd.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index ea9d92294..fc56d1055 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -12,11 +12,6 @@ #include "module.h" #include "numeric.h" -namespace -{ - size_t nicklen = 0; -} - class ngIRCdProto final : public IRCDProto { @@ -37,11 +32,6 @@ public: MaxModes = 5; } - size_t GetMaxNick() override - { - return nicklen ? nicklen : IRCDProto::GetMaxNick(); - } - void SendAkill(User *u, XLine *x) override { // Calculate the time left before this would expire @@ -182,7 +172,7 @@ struct IRCDMessage005 final } else if (parameter == "NICKLEN") { - nicklen = Anope::Convert<size_t>(data, 0); + IRCD->MaxNick = Anope::Convert<size_t>(data, IRCD->MaxNick); } } } |