extban : Correct logic for matching against permissions.

This commit is contained in:
Keith Buck 2012-01-24 17:13:32 +00:00
parent a8eae73002
commit 4862f41a02

View file

@ -40,8 +40,8 @@ static int eb_oper(const char *data, struct Client *client_p,
(void)mode_type;
if (data != NULL)
return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
/* $o:admin or whatever */
return HasPrivilege(client_p, data) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
}