X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/373ba193b802ce733b0cdf472b7d121a540ddef1..ea41b24fd4807e3565bf5f8f293e2efc4c20b62d:/modules/m_invite.c diff --git a/modules/m_invite.c b/modules/m_invite.c index 0b882aab..e20ea7a7 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -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)) {