]> jfr.im git - solanum.git/blobdiff - extensions/sno_whois.c
Merge pull request #288 from edk0/umode-o-split
[solanum.git] / extensions / sno_whois.c
index f5c69d92c1accca3567d4cc6b367536467c1f1df..eebc4d4ecb8fa8fa2caeb651b43ef2e84861b83f 100644 (file)
@@ -12,6 +12,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "send.h"
+#include "s_newconf.h"
 
 /* undefine this to allow anyone to receive whois notifications */
 #define OPERONLY
@@ -57,7 +58,7 @@ show_whois(hook_data_client *data)
 
        if(MyClient(target_p) &&
 #ifdef OPERONLY
-          IsOper(target_p) &&
+          IsOperGeneral(target_p) &&
 #endif
           (source_p != target_p) &&
           (target_p->snomask & snomask_modes['W']))