]> jfr.im git - solanum.git/blobdiff - modules/m_invite.c
Replace most checks for +o with oper:general
[solanum.git] / modules / m_invite.c
index 0b882aab2c47f41ceb0601bcf35d4158c324dcdc..e20ea7a7083b09216dd7ceb47ce06bd95ac0d973 100644 (file)
@@ -37,6 +37,7 @@
 #include "modules.h"
 #include "packet.h"
 #include "tgchange.h"
+#include "s_newconf.h"
 
 static const char invite_desc[] = "Provides /invite";
 
@@ -176,7 +177,7 @@ m_invite(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
 
        if(MyConnect(source_p))
        {
-               if (ConfigFileEntry.target_change && !IsOper(source_p) &&
+               if (ConfigFileEntry.target_change && !IsOperGeneral(source_p) &&
                                !find_allowing_channel(source_p, target_p) &&
                                !add_target(source_p, target_p))
                {