]> jfr.im git - solanum.git/blobdiff - modules/m_away.c
chmode: Get elevated access for op-only queries
[solanum.git] / modules / m_away.c
index 4e20235d9ca8574962c840e21e4a022c8147b193..b216fb65af05bb8812d5423e949732b9bb5d4eb4 100644 (file)
@@ -34,6 +34,7 @@
 #include "s_conf.h"
 #include "s_serv.h"
 #include "packet.h"
+#include "s_newconf.h"
 
 static const char away_desc[] = "Provides the AWAY command to set yourself away";
 
@@ -97,7 +98,7 @@ m_away(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
        /* Rate limit this because it is sent to common channels. */
        if (MyClient(source_p))
        {
-               if(!IsOper(source_p) &&
+               if(!IsOperGeneral(source_p) &&
                                source_p->localClient->next_away > rb_current_time())
                {
                        sendto_one(source_p, form_str(RPL_LOAD2HI),