diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-22 15:58:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-22 17:05:30 +0000 |
commit | c4e9c0bf8548da1bf4fe2cfe5e7f5ab101b35e52 (patch) | |
tree | edcb3b44b2c600aa40ebfb743fe7edfad4f06149 /include/protocol.h | |
parent | 84ad85ee857e9a088bf2d5e3e5b1056d1bf52bf8 (diff) |
If the IRCd sends a field limit then use it over that of the config.
Diffstat (limited to 'include/protocol.h')
-rw-r--r-- | include/protocol.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h index 08924a092..67a746b0f 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -293,6 +293,18 @@ public: virtual unsigned GetMaxListFor(Channel *c, ChannelMode *cm); virtual Anope::string NormalizeMask(const Anope::string &mask); + + /** Retrieves the maximum length of a channel name. */ + virtual size_t GetMaxChannel(); + + /** Retrieves the maximum length of a hostname. */ + virtual size_t GetMaxHost(); + + /** Retrieves the maximum length of a nickname. */ + virtual size_t GetMaxNick(); + + /** Retrieves the maximum length of a username. */ + virtual size_t GetMaxUser(); }; class CoreExport MessageSource final |