]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_invite.c
Allow /ojoin !#channel/%#channel, if admin/halfop are enabled.
[irc/rqf/shadowircd.git] / modules / m_invite.c
index cd33afff54dbdfcf44e15c02ff20633a5929035d..8dd0a73596b763e757dba17d69fc296f8d87c8d4 100644 (file)
@@ -149,9 +149,14 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
                        !(chptr->mode.mode & MODE_FREEINVITE))
        {
                if(IsOverride(source_p))
-                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+               {
+                       sendto_wallops_flags(UMODE_WALLOP, &me,
                                        "%s is overriding INVITE [%s] on [%s]",
                                        get_oper_name(source_p), target_p->name, chptr->chname);
+                       sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                                       ":%s WALLOPS :%s is overriding INVITE [%s] on [%s]",
+                                       me.name, get_oper_name(source_p), target_p->name, chptr->chname);
+               }
                else
                {
                        sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),