diff options
| author | 2018-08-14 19:18:15 +0100 | |
|---|---|---|
| committer | 2018-08-14 19:31:26 +0100 | |
| commit | a69f543be3bb6df77bfc19eaadc313d405ec2d45 (patch) | |
| tree | 3a8620f14ea20715ceec71df828a1a76428314b9 /src/modules/m_cban.cpp | |
| parent | Convert CLONES to use its own numeric and batch the replies. (diff) | |
| download | inspircd++-a69f543be3bb6df77bfc19eaadc313d405ec2d45.tar.gz inspircd++-a69f543be3bb6df77bfc19eaadc313d405ec2d45.tar.bz2 inspircd++-a69f543be3bb6df77bfc19eaadc313d405ec2d45.zip | |
Fix a bunch more conflicting/unnamed numerics.
Diffstat (limited to 'src/modules/m_cban.cpp')
| -rw-r--r-- | src/modules/m_cban.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 5f98def8f..d1fb23620 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -24,6 +24,12 @@ #include "xline.h" #include "modules/stats.h" +enum +{ + // InspIRCd-specific. + ERR_BADCHANNEL = 926 +}; + /** Holds a CBAN item */ class CBan : public XLine @@ -180,7 +186,7 @@ class ModuleCBan : public Module, public Stats::EventListener if (rl) { // Channel is banned. - user->WriteNumeric(384, cname, InspIRCd::Format("Cannot join channel, CBANed (%s)", rl->reason.c_str())); + user->WriteNumeric(ERR_BADCHANNEL, cname, InspIRCd::Format("Channel %s is CBANed: %s", cname.c_str(), rl->reason.c_str())); ServerInstance->SNO->WriteGlobalSno('a', "%s tried to join %s which is CBANed (%s)", user->nick.c_str(), cname.c_str(), rl->reason.c_str()); return MOD_RES_DENY; |
