class BanException : public ListModeBase
{
public:
- BanException(Module* Creator) : ListModeBase(Creator, "banexception", 'e', "End of Channel Exception List", 348, 349, true) { }
+ BanException(Module* Creator)
+ : ListModeBase(Creator, "banexception", 'e', "End of Channel Exception List", 348, 349, true)
+ {
+ }
};
void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE
{
- tokens["EXCEPTS"] = "e";
+ tokens["EXCEPTS"] = ConvToStr(be.GetModeChar());
}
ModResult OnExtBanCheck(User *user, Channel *chan, char type) CXX11_OVERRIDE
for (ListModeBase::ModeList::iterator it = list->begin(); it != list->end(); it++)
{
- if (it->mask[0] != type || it->mask[1] != ':')
+ if (it->mask.length() <= 2 || it->mask[0] != type || it->mask[1] != ':')
continue;
if (chan->CheckBan(user, it->mask.substr(2)))
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Provides support for the +e channel mode", VF_VENDOR);
+ return Version("Provides channel mode +e, ban exceptions", VF_VENDOR);
}
};