]> jfr.im git - solanum.git/blobdiff - modules/core/m_quit.c
Unify oper:{global,local}_kill
[solanum.git] / modules / core / m_quit.c
index a986a327f97beefb5de9c96fa5c0dd84ee664b7c..9df243c8288f89a4d9093dd0610524e125c48fe1 100644 (file)
@@ -33,6 +33,7 @@
 #include "modules.h"
 #include "s_conf.h"
 #include "inline/stringops.h"
+#include "s_newconf.h"
 
 static const char quit_desc[] = "Provides the QUIT command to allow a user to leave the network";
 
@@ -86,7 +87,7 @@ m_quit(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
                comment = reason;
        }
 
-       if (comment == NULL || (!IsOper(source_p) && hdata.reason == hdata.orig_reason &&
+       if (comment == NULL || (!IsOperGeneral(source_p) && hdata.reason == hdata.orig_reason &&
           (source_p->localClient->firsttime + ConfigFileEntry.anti_spam_exit_message_time) >
           rb_current_time()))
        {