]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - whoisparanoid.patch
whonoidle: hide idle time of users with mode +I in non-HIS setup in WHO
[irc/quakenet/snircd-patchqueue.git] / whoisparanoid.patch
CommitLineData
debb7a57 1correct whois paranoid logic
1eab78c7 2
3diff -r 180017284849 ircd/m_whois.c
4--- a/ircd/m_whois.c Tue Mar 23 22:01:56 2010 +0100
5+++ b/ircd/m_whois.c Tue Mar 23 22:05:41 2010 +0100
6@@ -218,7 +218,7 @@
7 send_reply(sptr, RPL_WHOISACTUALLY, name, user->realusername,
8 user->realhost, ircd_ntoa(&cli_ip(acptr)));
9
10- if (!IsAnOper(sptr) && IsParanoid(acptr) && IsAnOper(acptr))
11+ if (!IsAnOper(sptr) && IsParanoid(acptr) && (sptr != acptr))
12 sendcmdto_one(&me, CMD_NOTICE, acptr, "%C :whois: %s performed a /WHOIS on you.", acptr, cli_name(sptr));
13
14 /* Hint: if your looking to add more flags to a user, eg +h, here's