make it a lot more obvious when a oper is using override.
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),
!(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),
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),
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;
}
{
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
{
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;
{
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)