- char mask[MAXBUF];
- snprintf(mask, MAXBUF, "%s!%s@%s", LM->user->nick, LM->user->ident, LM->user->GetIPString());
- for (modelist::iterator it = list->begin(); it != list->end(); it++)
- {
- if (ServerInstance->MatchText(LM->user->GetFullRealHost(), it->mask) || ServerInstance->MatchText(LM->user->GetFullHost(), it->mask) ||
- (match(mask, it->mask.c_str(), true)))
- {
- // They match an entry
- return (char*)it->mask.c_str();
- }
- }
- return NULL;