+
+ return 0;
+ }
+
+ virtual int OnCheckBan(User* user, Channel* chan)
+ {
+ if (chan != NULL)
+ {
+ modelist* list;
+ chan->GetExt(be->GetInfoKey(), list);
+
+ if (!list)
+ {
+ // No list, proceed normally
+ return 0;
+ }
+
+ std::string mask = std::string(user->nick) + "!" + user->ident + "@" + user->GetIPString();
+ for (modelist::iterator it = list->begin(); it != list->end(); it++)
+ {
+ if (match(user->GetFullRealHost(), it->mask) || match(user->GetFullHost(), it->mask) || (match(mask, it->mask, true)))
+ {
+ // They match an entry on the list, so let them in.
+ return 1;
+ }
+ }
+ }
+ return 0;