mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 14:23:13 +02:00
Use get_operclass() in extbans/operclass as well.
This commit is contained in:
@@ -92,11 +92,7 @@ int extban_operclass_is_banned(BanContext *b)
|
||||
{
|
||||
if (MyUser(b->client) && IsOper(b->client))
|
||||
{
|
||||
char *operclass = NULL;
|
||||
ConfigItem_oper *oper = find_oper(b->client->user->operlogin);
|
||||
if (oper && oper->operclass)
|
||||
operclass = oper->operclass;
|
||||
|
||||
const char *operclass = get_operclass(b->client);
|
||||
if (operclass && match_simple(b->banstr, operclass))
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user