Change all override snotes to wallops to match m_o* and to

make it a lot more obvious when a oper is using override.
This commit is contained in:
JD Horelick 2010-03-07 22:42:51 -05:00
parent c809010b89
commit 34d8ef4d14
5 changed files with 41 additions and 13 deletions

View File

@ -205,9 +205,14 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
comment[REASONLEN] = '\0'; comment[REASONLEN] = '\0';
if(is_override) if(is_override)
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, {
sendto_wallops_flags(UMODE_WALLOP, &me,
"%s is overriding KICK [%s] on [%s] [%s]", "%s is overriding KICK [%s] on [%s] [%s]",
get_oper_name(source_p), who->name, chptr->chname, comment); 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 /* jdc
* - In the case of a server kicking a user (i.e. CLEARCHAN), * - In the case of a server kicking a user (i.e. CLEARCHAN),

View File

@ -149,9 +149,14 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
!(chptr->mode.mode & MODE_FREEINVITE)) !(chptr->mode.mode & MODE_FREEINVITE))
{ {
if(IsOverride(source_p)) if(IsOverride(source_p))
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, {
sendto_wallops_flags(UMODE_WALLOP, &me,
"%s is overriding INVITE [%s] on [%s]", "%s is overriding INVITE [%s] on [%s]",
get_oper_name(source_p), target_p->name, chptr->chname); 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 else
{ {
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED), sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),

View 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(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_chanop(msptr))
{ {
if(IsOverride(source_p)) if(IsOverride(source_p))
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, {
sendto_wallops_flags(UMODE_WALLOP, &me,
"%s is overriding TOPIC on [%s]", "%s is overriding TOPIC on [%s]",
get_oper_name(source_p), chptr->chname); 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 else
{ {
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED), sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),

View File

@ -837,9 +837,12 @@ can_join(struct Client *source_p, struct Channel *chptr, char *key)
if(IsOverride(source_p)) if(IsOverride(source_p))
{ {
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, sendto_wallops_flags(UMODE_WALLOP, &me,
"%s is overriding JOIN to [%s]", "%s is overriding JOIN to [%s]",
get_oper_name(source_p), chptr->chname); 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; return 0;
} }

View File

@ -799,10 +799,12 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
{ {
if(IsOverride(source_p)) 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)", "%s is overriding modes on %s: (%s list)",
get_oper_name(source_p), chptr->chname, get_oper_name(source_p), chptr->chname, mode_type == CHFL_INVEX ? "invex" : "exempt");
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 else
{ {
@ -2138,10 +2140,14 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
sendto_channel_local(flags, chptr, "%s%s %s", sendto_channel_local(flags, chptr, "%s%s %s",
cmdbuf, modebuf, parabuf); cmdbuf, modebuf, parabuf);
if(override) if(override)
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, {
sendto_wallops_flags(UMODE_WALLOP, &me,
"%s is overriding modes on %s: %s %s", "%s is overriding modes on %s: %s %s",
get_oper_name(source_p), chptr->chname, get_oper_name(source_p), chptr->chname, modebuf, parabuf);
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 else
continue; 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); sendto_channel_local(flags, chptr, "%s%s %s", cmdbuf, modebuf, parabuf);
if(override) if(override)
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, {
sendto_wallops_flags(UMODE_WALLOP, &me,
"%s is overriding modes on %s: %s %s", "%s is overriding modes on %s: %s %s",
get_oper_name(source_p), chptr->chname, get_oper_name(source_p), chptr->chname, modebuf, parabuf);
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) if(override)