]> jfr.im git - solanum.git/blobdiff - modules/m_knock.c
Replace most checks for +o with oper:general
[solanum.git] / modules / m_knock.c
index 969595de6099f2974e3546745ec2269b71994b87..29cc3e5f578b34b427191ee16ebc1571b5b1e4d5 100644 (file)
@@ -35,6 +35,7 @@
 #include "modules.h"
 #include "s_serv.h"
 #include "supported.h"
+#include "s_newconf.h"
 
 static const char knock_desc[] = "Provides the KNOCK command to ask for an invite to an invite-only channel";
 
@@ -142,7 +143,7 @@ m_knock(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
                 * allow one knock per user per knock_delay
                 * allow one knock per channel per knock_delay_channel
                 */
-               if(!IsOper(source_p) &&
+               if(!IsOperGeneral(source_p) &&
                   (source_p->localClient->last_knock + ConfigChannel.knock_delay) > rb_current_time())
                {
                        sendto_one(source_p, form_str(ERR_TOOMANYKNOCK),