1 hide the owner of a ban in the channel banlist from non-chanops
3 diff -r 67928388e226 ircd/channel.c
4 --- a/ircd/channel.c Sun Jan 11 22:38:39 2009 +0000
5 +++ b/ircd/channel.c Sun Jan 11 22:38:40 2009 +0000
6 @@ -1243,13 +1243,18 @@
7 static void send_ban_list(struct Client* cptr, struct Channel* chptr)
10 + int showbanowner = 0;
15 + /* hide who set the ban from non-chanops */
16 + if (IsAnOper(cptr) || is_chan_op(cptr, chptr))
19 for (lp = chptr->banlist; lp; lp = lp->next)
20 send_reply(cptr, RPL_BANLIST, chptr->chname, lp->banstr,
22 + showbanowner ? lp->who : "*", lp->when);
24 send_reply(cptr, RPL_ENDOFBANLIST, chptr->chname);