]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Change all override snotes to wallops to match m_o* and to
authorJD Horelick <redacted>
Mon, 8 Mar 2010 03:42:51 +0000 (22:42 -0500)
committerJD Horelick <redacted>
Mon, 8 Mar 2010 03:42:51 +0000 (22:42 -0500)
make it a lot more obvious when a oper is using override.

modules/core/m_kick.c
modules/m_invite.c
modules/m_topic.c
src/channel.c
src/chmode.c

index 4d903d1ce18ce5d1398936353737f545c4389c14..937b05bcad8fcfbe10788edb160dfb9d54e7c9d2 100644 (file)
@@ -205,9 +205,14 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                        comment[REASONLEN] = '\0';
 
                if(is_override)
-                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+               {
+                       sendto_wallops_flags(UMODE_WALLOP, &me,
                                        "%s is overriding KICK [%s] on [%s] [%s]",
                                        get_oper_name(source_p), who->name, chptr->chname, comment);
+                       sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                                       ":%s WALLOPS :%s is overriding KICK [%s] on [%s] [%s]",
+                                       use_id(source_p), get_oper_name(source_p), who->name, chptr->chname, comment);
+               }
 
                /* jdc
                 * - In the case of a server kicking a user (i.e. CLEARCHAN),
index cd33afff54dbdfcf44e15c02ff20633a5929035d..f96194e87e750ecebf0dd34eebfe79c814f6cd08 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]",
+                                       use_id(source_p), get_oper_name(source_p), target_p->name, chptr->chname);
+               }
                else
                {
                        sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
index cddf5f94f8cb9061e0c3f3b166ab4c2773e1bd98..4b6d44bb0bbd618ad599a9b524e65b9826535a1b 100644 (file)
@@ -119,9 +119,14 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
                if(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_chanop(msptr))
                {
                        if(IsOverride(source_p))
-                               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+                       {
+                               sendto_wallops_flags(UMODE_WALLOP, &me,
                                                "%s is overriding TOPIC on [%s]",
                                                get_oper_name(source_p), chptr->chname);
+                               sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                                               ":%s WALLOPS :%s is overriding TOPIC on [%s]",
+                                               use_id(source_p), get_oper_name(source_p), chptr->chname);
+                       }
                        else
                        {
                                sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
index 7ff168434693336ccaccfefacbe6998a50abe425..ff77a3a02fa3ed6bf57f1cc2458fa2c88648f0b8 100644 (file)
@@ -837,9 +837,12 @@ can_join(struct Client *source_p, struct Channel *chptr, char *key)
 
        if(IsOverride(source_p))
        {
-               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+               sendto_wallops_flags(UMODE_WALLOP, &me,
                                "%s is overriding JOIN to [%s]",
                                get_oper_name(source_p), chptr->chname);
+               sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                               ":%s WALLOPS :%s is overriding JOIN to [%s]",
+                               use_id(source_p), get_oper_name(source_p), chptr->chname);
                return 0;
        }
 
index ade4ddf9472acac814043c4c0a7f4396822cbe9d..25ae8384212c76a43e1a1acc948fffc58df9b602 100644 (file)
@@ -799,10 +799,12 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
                {
                        if(IsOverride(source_p))
                        {
-                               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+                               sendto_wallops_flags(UMODE_WALLOP, &me,
                                                "%s is overriding modes on %s: (%s list)",
-                                               get_oper_name(source_p), chptr->chname,
-                                               mode_type == CHFL_INVEX ? "invex" : "exempt");
+                                               get_oper_name(source_p), chptr->chname, mode_type == CHFL_INVEX ? "invex" : "exempt");
+                               sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                                               ":%s WALLOPS :%s is overriding modes on %s: (%s list)",
+                                               use_id(source_p), get_oper_name(source_p), chptr->chname, mode_type == CHFL_INVEX ? "invex" : "exempt");
                        }
                        else
                        {
@@ -2138,10 +2140,14 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
                                                sendto_channel_local(flags, chptr, "%s%s %s",
                                                                     cmdbuf, modebuf, parabuf);
                                                if(override)
-                                                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+                                               {
+                                                       sendto_wallops_flags(UMODE_WALLOP, &me,
                                                                        "%s is overriding modes on %s: %s %s",
-                                                                       get_oper_name(source_p), chptr->chname,
-                                                                       modebuf, parabuf);
+                                                                       get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+                                                       sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                                                                       ":%s WALLOPS :%s is overriding modes on %s: %s %s",
+                                                                       use_id(source_p), get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+                                               }
                                        }
                                        else
                                                continue;
@@ -2181,10 +2187,14 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
                        {
                                sendto_channel_local(flags, chptr, "%s%s %s", cmdbuf, modebuf, parabuf);
                                if(override)
-                                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+                               {
+                                       sendto_wallops_flags(UMODE_WALLOP, &me,
                                                        "%s is overriding modes on %s: %s %s",
-                                                       get_oper_name(source_p), chptr->chname,
-                                                       modebuf, parabuf);
+                                                       get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+                                       sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+                                                       ":%s WALLOPS :%s is overriding modes on %s: %s %s",
+                                                       use_id(source_p), get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+                               }
                        }
                }
                if(override)