1
0
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:
Bram Matthys
2021-09-25 11:02:39 +02:00
parent cac8c34bcc
commit 47279108e4
+1 -5
View File
@@ -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;
}