]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
whoisparanoid: correct logic in notice
authorwiebe <redacted>
Tue, 23 Mar 2010 21:09:52 +0000 (22:09 +0100)
committerwiebe <redacted>
Tue, 23 Mar 2010 21:09:52 +0000 (22:09 +0100)
series
whoisparanoid.patch [new file with mode: 0644]

diff --git a/series b/series
index a3ad5bf311ccd3a590f8aa921ae5a232318297bb..98df3049599a90476181c6d5772f1f8ee96057a3 100644 (file)
--- a/series
+++ b/series
@@ -7,6 +7,7 @@ minoplevel.patch
 ischannelservice.patch
 invalidatebanssethost.patch
 localoperkill.patch
+whoisparanoid.patch
 freetargetcheckaftermodechecks.patch
 checkoutput.patch
 checkendof.patch
diff --git a/whoisparanoid.patch b/whoisparanoid.patch
new file mode 100644 (file)
index 0000000..73df7bf
--- /dev/null
@@ -0,0 +1,14 @@
+whoisparanoid.patch
+
+diff -r 180017284849 ircd/m_whois.c
+--- a/ircd/m_whois.c   Tue Mar 23 22:01:56 2010 +0100
++++ b/ircd/m_whois.c   Tue Mar 23 22:05:41 2010 +0100
+@@ -218,7 +218,7 @@
+       send_reply(sptr, RPL_WHOISACTUALLY, name, user->realusername,
+                  user->realhost, ircd_ntoa(&cli_ip(acptr)));
+-    if (!IsAnOper(sptr) && IsParanoid(acptr) && IsAnOper(acptr))
++    if (!IsAnOper(sptr) && IsParanoid(acptr) && (sptr != acptr))
+       sendcmdto_one(&me, CMD_NOTICE, acptr, "%C :whois: %s performed a /WHOIS on you.", acptr, cli_name(sptr));
+     
+     /* Hint: if your looking to add more flags to a user, eg +h, here's