diff options
author | Peter Powell <petpow@saberuk.com> | 2018-12-09 06:43:55 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-12-09 06:57:10 +0000 |
commit | db5610a5640749ab7dafab82c1ef1553f3d78615 (patch) | |
tree | 9302c5ecc1b8ac299e379ef078ced426db63b8b3 /src/modules | |
parent | a5b9f37d62670a49e81c5a53f93bdf485aace4a6 (diff) |
Use consistent numerics when a mode already exists or doesn't exist.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chanfilter.cpp | 17 | ||||
-rw-r--r-- | src/modules/m_exemptchanops.cpp | 10 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index 5591c7ef9..42f43a767 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -27,13 +27,6 @@ #include "listmode.h" #include "modules/exemption.h" -enum -{ - // InspIRCd-specific. - ERR_ALREADYCHANFILTERED = 937, - ERR_NOSUCHCHANFILTER = 938 -}; - /** Handles channel mode +g */ class ChanFilter : public ListModeBase @@ -53,16 +46,6 @@ class ChanFilter : public ListModeBase return true; } - - void TellAlreadyOnList(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE - { - user->WriteNumeric(ERR_ALREADYCHANFILTERED, chan->name, InspIRCd::Format("The word %s is already on the spamfilter list", word.c_str())); - } - - void TellNotSet(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE - { - user->WriteNumeric(ERR_NOSUCHCHANFILTER, chan->name, "No such spamfilter word is set"); - } }; class ModuleChanFilter : public Module diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index 411d0dd15..058a16e6c 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -51,16 +51,6 @@ class ExemptChanOps : public ListModeBase return true; } - - void TellAlreadyOnList(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE - { - user->WriteNumeric(957, chan->name, InspIRCd::Format("The word %s is already on the exemptchanops list", word.c_str())); - } - - void TellNotSet(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE - { - user->WriteNumeric(958, chan->name, "No such exemptchanops word is set"); - } }; class ExemptHandler : public CheckExemption::EventListener |