1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 03:53:13 +02:00

Fix looking up the wrong extban in some cases.

~T => ~text => starts with ~t => ~time... fun.
This commit is contained in:
Bram Matthys
2021-08-14 17:57:22 +02:00
parent 75dbd99614
commit 03d78bf95d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ Extban *findmod_by_bantype(char *str, char **remainder)
for (i=0; i <= ExtBan_highest; i++)
{
if (ExtBan_Table[i].letter == str[1])
if ((str[2] == ':') && (ExtBan_Table[i].letter == str[1]))
return &ExtBan_Table[i];
if (ExtBan_Table[i].name && !strncmp(ExtBan_Table[i].name, str+1, strlen(ExtBan_Table[i].name)))
return &ExtBan_Table[i];