]> 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 a5038cce88694112b5924d9c6e12d9b62901e7d6..1566f4021b17558e21648d2520c989d839e65916 100644 (file)
@@ -37,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";
@@ -70,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