]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/spy_whois_notice_global.c
[svn] Backport from early 3.x:
[irc/rqf/shadowircd.git] / extensions / spy_whois_notice_global.c
index b586d7ebc83e3dee619e04296974d552feba0b25..0d16e3a80fc339e6605fb93b9cc2f3af97a643f9 100644 (file)
@@ -19,7 +19,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: spy_whois_notice_global.c 498 2006-01-15 16:40:33Z jilles $
+ *  $Id: spy_whois_notice_global.c 3161 2007-01-25 07:23:01Z nenolod $
  */
 #include "stdinc.h"
 #include "modules.h"
@@ -36,7 +36,7 @@ mapi_hfn_list_av1 whois_global_hfnlist[] = {
 };
 
 DECLARE_MODULE_AV1(whois_global_spy, NULL, NULL, NULL, NULL, whois_global_hfnlist,
-                  "$Revision: 498 $");
+                  "$Revision: 3161 $");
 
 void
 show_whois_global(hook_data_client *data)
@@ -47,9 +47,9 @@ show_whois_global(hook_data_client *data)
        if(MyClient(target_p) && IsOper(target_p) && (source_p != target_p) &&
           (target_p->snomask & SNO_SPY))
        {
-               sendto_one(target_p,
-                               ":%s NOTICE %s :*** Notice -- %s (%s@%s) is doing a whois on you [%s]",
-                               me.name, target_p->name, source_p->name,
+               sendto_one_notice(target_p,
+                               ":*** Notice -- %s (%s@%s) is doing a whois on you [%s]",
+                               source_p->name,
                                source_p->username, source_p->host,
                                source_p->user->server);
        }