1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 13:33:12 +02:00

Additional fix for previous: deletion didn't work either, let's move this

fiddling up one layer. Though i should really check if .get works.
This commit is contained in:
Bram Matthys
2023-04-25 15:28:38 +02:00
parent 5ec2701e9d
commit 30ed59617e
+4 -6
View File
@@ -158,6 +158,10 @@ int server_ban_select_criteria(Client *client, json_t *request, json_t *params,
return 0;
}
/* Hm, shouldn't this be done by server_ban_parse_mask() ? */
if (*soft && (*usermask[0] == '%'))
*usermask = *usermask + 1;
return 1;
}
@@ -272,12 +276,6 @@ RPC_CALL_FUNC(rpc_server_ban_add)
return;
}
/* Hm, shouldn't this be done by server_ban_select_criteria()
* which calls server_ban_parse_mask() ?
*/
if (soft && (*usermask == '%'))
usermask++;
tkl_type_str[0] = tkl_type_char;
tkl_type_str[1] = '\0';