]> jfr.im git - irc/quakenet/snircd.git/blobdiff - ircd/m_whois.c
forward port of asuka-operwhois.patch to .12
[irc/quakenet/snircd.git] / ircd / m_whois.c
index 63d25166d81bff1e5779115236b01d6a3d1aa225..8a2a4304af041afc5229402700ce27f28ef079f5 100644 (file)
@@ -215,6 +215,9 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc)
       send_reply(sptr, RPL_WHOISACTUALLY, name, user->realusername,
                  user->realhost, ircd_ntoa(&cli_ip(acptr)));
 
+    if (!IsAnOper(sptr) && IsParanoid(acptr) && IsAnOper(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
      *       probably a good place to add them :)
      */