extban : Correct logic for matching against permissions.
This commit is contained in:
parent
a8eae73002
commit
4862f41a02
1 changed files with 3 additions and 3 deletions
|
@ -40,8 +40,8 @@ static int eb_oper(const char *data, struct Client *client_p,
|
||||||
(void)mode_type;
|
(void)mode_type;
|
||||||
|
|
||||||
if (data != NULL)
|
if (data != NULL)
|
||||||
return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
|
/* $o:admin or whatever */
|
||||||
|
return HasPrivilege(client_p, data) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
|
||||||
|
|
||||||
/* $o:admin or whatever */
|
return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
|
||||||
return HasPrivilege(client_p, data) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue