- virtual void OnRehash(userrec* user, const std::string ¶m)
- {
- be->DoRehash();
- }
-
- virtual Version GetVersion()
- {
- return Version(1, 1, 0, 3, VF_COMMON | VF_VENDOR, API_VERSION);
- }
-
- virtual ~ModuleBanException()
- {
- ServerInstance->Modes->DelMode(be);
- DELETE(be);
+ for (modelist::iterator it = list->begin(); it != list->end(); it++)
+ {
+ if (chan->CheckBan(user, it->mask))
+ {
+ // They match an entry on the list, so let them in.
+ return MOD_RES_ALLOW;
+ }
+ }
+ }
+ return MOD_RES_PASSTHRU;