Skip to content

Commit b72c3a9

Browse files
committed
hidebans: the banlist was accidentally hidden even for chanops.
The modes were not hidden to chanops but all the +beI lists were (MODE #channel b). Reported by Nini.
1 parent 8ab4552 commit b72c3a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/hidebans.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ int hidebans_packet(Client *from, Client *to, Client *intended_to, char **msg, i
8484
if (!strncmp(p, "367 ", 4) || !strncmp(p, "348 ", 4) || !strncmp(p, "346 ", 4)) /* +b, +e, +I */
8585
{
8686
/* +beI list results */
87-
if (hidebans_isskochanop(p+4, to))
87+
p = strchr(p+4, ' ');
88+
if (p && hidebans_isskochanop(p+1, to))
8889
return 0; /* show as-is if chanop */
8990

9091
/* otherwise, drop it.. */

0 commit comments

Comments
 (0)