- std::string mask = std::string(user->nick) + "!" + user->ident + "@" + user->GetIPString();
- for (modelist::iterator it = list->begin(); it != list->end(); it++)
- {
- if (it->mask[0] != type || it->mask[1] != ':')
- continue;
-
- std::string maskptr = it->mask.substr(2);
-
- if (InspIRCd::Match(user->GetFullRealHost(), maskptr) || match(user->GetFullHost(), maskptr) || (InspIRCd::Match(mask, maskptr, true)))
- {
- // They match an entry on the list, so let them pass this.
- return 1;
- }
- }
- }
-
- return 0;
- }
-
- virtual int OnCheckStringExtBan(const std::string &str, Channel *chan, char type)
- {
- if (chan != NULL)