- modelist *list;
- chan->GetExt(be->GetInfoKey(), list);
-
- if (!list)
- return 0;
- 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(str, maskptr))
- // They match an entry on the list, so let them in.
- return 1;
- }
- }
-
- return 0;
- }
-
- virtual int OnCheckBan(User* user, Channel* chan)
- {
- if (chan != NULL)
- {
- modelist* list;
- chan->GetExt(be->GetInfoKey(), list);