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:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user