#include "listmode.h"
#include "modules/exemption.h"
-enum
-{
- // InspIRCd-specific.
- ERR_ALREADYCHANFILTERED = 937,
- ERR_NOSUCHCHANFILTER = 938
-};
-
/** Handles channel mode +g
*/
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