diff options
author | Peter Powell <petpow@saberuk.com> | 2017-09-05 17:54:40 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-09-06 10:44:41 +0100 |
commit | b13b1b8a0613e48013ca9f6a5279559d0aee0f73 (patch) | |
tree | 963c043afff8d92edfd774f034b2fb0b9f1e2517 /src/modules/m_sslmodes.cpp | |
parent | d68c5be901d1d3f3a68e9796f9cd0815a4568a72 (diff) |
Convert uncontroversial anonymous numerics to use constants.
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
-rw-r--r-- | src/modules/m_sslmodes.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp index e499082ff..d3afd00e6 100644 --- a/src/modules/m_sslmodes.cpp +++ b/src/modules/m_sslmodes.cpp @@ -24,6 +24,12 @@ #include "inspircd.h" #include "modules/ssl.h" +enum +{ + // From UnrealIRCd. + ERR_SECUREONLYCHAN = 489 +}; + /** Handle channel mode +z */ class SSLMode : public ModeHandler @@ -107,7 +113,7 @@ class ModuleSSLModes : public Module else { // Deny - user->WriteNumeric(489, cname, "Cannot join channel; SSL users only (+z)"); + user->WriteNumeric(ERR_SECUREONLYCHAN, cname, "Cannot join channel; SSL users only (+z)"); return MOD_RES_DENY; } } |