]> jfr.im git - solanum.git/blobdiff - modules/m_whowas.c
m_whois: show services even if they lack opernames
[solanum.git] / modules / m_whowas.c
index 7f6e0926b880936f2fceec4992cbd74ba45217eb..1566f4021b17558e21648d2520c989d839e65916 100644 (file)
@@ -25,7 +25,6 @@
 #include "stdinc.h"
 #include "whowas.h"
 #include "client.h"
-#include "common.h"
 #include "hash.h"
 #include "match.h"
 #include "ircd.h"
@@ -38,6 +37,7 @@
 #include "msg.h"
 #include "parse.h"
 #include "modules.h"
+#include "s_newconf.h"
 
 static const char whowas_desc[] =
        "Provides the WHOWAS command to display information on a disconnected user";
@@ -71,7 +71,7 @@ m_whowas(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
 
        static time_t last_used = 0L;
 
-       if(MyClient(source_p) && !IsOper(source_p))
+       if(MyClient(source_p) && !IsOperGeneral(source_p))
        {
                if(last_used + (parc > 3 ? ConfigFileEntry.pace_wait :
                                                ConfigFileEntry.pace_wait_simple