summaryrefslogtreecommitdiff
path: root/modules/m_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_set.c')
-rw-r--r--modules/m_set.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/modules/m_set.c b/modules/m_set.c
index f17b4a6..2623283 100644
--- a/modules/m_set.c
+++ b/modules/m_set.c
@@ -152,7 +152,7 @@ quote_autoconn(struct Client *source_p, const char *arg, int newval)
else
ClearConfAllowAutoConn(aconf);
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed AUTOCONN for %s to %i",
get_oper_name(source_p), arg, newval);
sendto_one(source_p,
@@ -178,7 +178,8 @@ quote_autoconnall(struct Client *source_p, int newval)
{
if (newval >= 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed AUTOCONNALL to %i",
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
+ "%s has changed AUTOCONNALL to %i",
get_oper_name(source_p), newval);
GlobalSetOptions.autoconn = newval;
@@ -195,7 +196,7 @@ quote_floodcount(struct Client *source_p, int newval)
if (newval >= 0)
{
GlobalSetOptions.floodcount = newval;
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed FLOODCOUNT to %i",
get_oper_name(source_p), GlobalSetOptions.floodcount);
}
@@ -217,7 +218,7 @@ quote_identtimeout(struct Client *source_p, int newval)
if (newval > 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed IDENTTIMEOUT to %d",
get_oper_name(source_p), newval);
GlobalSetOptions.ident_timeout = newval;
@@ -253,7 +254,7 @@ quote_max(struct Client *source_p, int newval)
ServerInfo.max_clients = newval;
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s set new MAXCLIENTS to %d (%d current)",
get_oper_name(source_p), ServerInfo.max_clients, Count.local);
}
@@ -286,14 +287,15 @@ quote_spamnum(struct Client *source_p, int newval)
{
if (newval == 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has disabled ANTI_SPAMBOT", source_p->name);
GlobalSetOptions.spam_num = newval;
return;
}
GlobalSetOptions.spam_num = IRCD_MAX(newval, MIN_SPAM_NUM);
- sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMNUM to %i",
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
+ "%s has changed SPAMNUM to %i",
get_oper_name(source_p), GlobalSetOptions.spam_num);
}
else
@@ -308,7 +310,8 @@ quote_spamtime(struct Client *source_p, int newval)
if (newval > 0)
{
GlobalSetOptions.spam_time = IRCD_MAX(newval, MIN_SPAM_TIME);
- sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMTIME to %i",
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
+ "%s has changed SPAMTIME to %i",
get_oper_name(source_p), GlobalSetOptions.spam_time);
}
else
@@ -350,7 +353,7 @@ quote_splitmode(struct Client *source_p, char *charval)
/* OFF */
if (newval == 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s is disabling splitmode",
get_oper_name(source_p));
@@ -362,7 +365,7 @@ quote_splitmode(struct Client *source_p, char *charval)
/* ON */
else if (newval == 1)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s is enabling and activating splitmode",
get_oper_name(source_p));
@@ -375,7 +378,7 @@ quote_splitmode(struct Client *source_p, char *charval)
/* AUTO */
else if (newval == 2)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s is enabling automatic splitmode",
get_oper_name(source_p));
@@ -399,7 +402,7 @@ quote_splitnum(struct Client *source_p, int newval)
{
if (newval >= 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed SPLITNUM to %i",
get_oper_name(source_p), newval);
split_servers = newval;
@@ -418,7 +421,7 @@ quote_splitusers(struct Client *source_p, int newval)
{
if (newval >= 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed SPLITUSERS to %i",
get_oper_name(source_p), newval);
split_users = newval;
@@ -437,7 +440,7 @@ quote_jfloodtime(struct Client *source_p, int newval)
{
if (newval >= 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed JFLOODTIME to %i",
get_oper_name(source_p), newval);
GlobalSetOptions.joinfloodtime = newval;
@@ -453,7 +456,7 @@ quote_jfloodcount(struct Client *source_p, int newval)
{
if (newval >= 0)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"%s has changed JFLOODCOUNT to %i",
get_oper_name(source_p), newval);
GlobalSetOptions.joinfloodcount = newval;