]> jfr.im git - solanum.git/blobdiff - extensions/sno_whois.c
rename src to ircd, libcore to libircd
[solanum.git] / extensions / sno_whois.c
index d02c6f6a322bdeee64c4e75355e4c4b01a77d763..2ff5d4775d43d27d404a4bdbc0be29a94ac5815c 100644 (file)
@@ -37,7 +37,7 @@ init(void)
 static void
 fini(void)
 {
-       snomask_modes['W'] = find_snomask_slot();
+       snomask_modes['W'] = 0;
 }
 
 DECLARE_MODULE_AV1(sno_whois, init, fini, NULL, NULL, whois_hfnlist, "$Revision: 3498 $");
@@ -48,7 +48,7 @@ show_whois(hook_data_client *data)
        struct Client *source_p = data->client;
        struct Client *target_p = data->target;
 
-       if(MyClient(target_p) && 
+       if(MyClient(target_p) &&
 #ifdef OPERONLY
           IsOper(target_p) &&
 #endif
@@ -59,6 +59,6 @@ show_whois(hook_data_client *data)
                                ":*** Notice -- %s (%s@%s) is doing a whois on you [%s]",
                                source_p->name,
                                source_p->username, source_p->host,
-                               source_p->user->server);
+                               source_p->servptr->name);
        }
 }