summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-22 15:58:23 +0000
committerSadie Powell <sadie@witchery.services>2024-02-22 17:05:30 +0000
commitc4e9c0bf8548da1bf4fe2cfe5e7f5ab101b35e52 (patch)
treeedcb3b44b2c600aa40ebfb743fe7edfad4f06149 /include
parent84ad85ee857e9a088bf2d5e3e5b1056d1bf52bf8 (diff)
If the IRCd sends a field limit then use it over that of the config.
Diffstat (limited to 'include')
-rw-r--r--include/language.h4
-rw-r--r--include/protocol.h12
2 files changed, 14 insertions, 2 deletions
diff --git a/include/language.h b/include/language.h
index 8b9975d15..49af506be 100644
--- a/include/language.h
+++ b/include/language.h
@@ -124,7 +124,7 @@ namespace Language
#define BOT_NOT_ON_CHANNEL _("Bot is not on channel \002%s\002.")
#define HOST_SET_ERROR _("A vHost must be in the format of a valid hostname.")
#define HOST_SET_IDENT_ERROR _("A vHost ident must be in the format of a valid ident.")
-#define HOST_SET_TOOLONG _("Error! The vHost is too long, please use a hostname shorter than %d characters.")
-#define HOST_SET_IDENTTOOLONG _("Error! The vHost ident is too long, please use an ident shorter than %d characters.")
+#define HOST_SET_TOOLONG _("Error! The vHost is too long, please use a hostname shorter than %zu characters.")
+#define HOST_SET_IDENTTOOLONG _("Error! The vHost ident is too long, please use an ident shorter than %zu characters.")
#define HOST_NOT_ASSIGNED _("Please contact an Operator to get a vHost assigned to this nick.")
#define HOST_NO_VIDENT _("Your IRCd does not support vIdent's, if this is incorrect, please report this as a possible bug")
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