ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_set.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_set.c (file contents):
Revision 7858 by michael, Tue Nov 8 20:06:16 2016 UTC vs.
Revision 7896 by michael, Thu Nov 24 10:09:46 2016 UTC

# Line 71 | Line 71 | quote_autoconnall(struct Client *source_
71   {
72    if (newval >= 0)
73    {
74    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
75                         "%s has changed AUTOCONNALL to %i",
76                         get_oper_name(source_p), newval);
77
74      GlobalSetOptions.autoconn = newval;
75 +    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
76 +                         "%s has changed AUTOCONNALL to %u",
77 +                         get_oper_name(source_p), GlobalSetOptions.autoconn);
78    }
79    else
80 <    sendto_one_notice(source_p, &me, ":AUTOCONNALL is currently %i",
80 >    sendto_one_notice(source_p, &me, ":AUTOCONNALL is currently %u",
81                        GlobalSetOptions.autoconn);
82   }
83  
# Line 90 | Line 89 | quote_floodcount(struct Client *source_p
89    {
90      GlobalSetOptions.floodcount = newval;
91      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
92 <                         "%s has changed FLOODCOUNT to %i",
92 >                         "%s has changed FLOODCOUNT to %u",
93                           get_oper_name(source_p), GlobalSetOptions.floodcount);
94    }
95    else
96 <    sendto_one_notice(source_p, &me, ":FLOODCOUNT is currently %i",
96 >    sendto_one_notice(source_p, &me, ":FLOODCOUNT is currently %u",
97                        GlobalSetOptions.floodcount);
98   }
99  
# Line 106 | Line 105 | quote_floodtime(struct Client *source_p,
105    {
106      GlobalSetOptions.floodtime = newval;
107      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
108 <                         "%s has changed FLOODTIME to %i",
108 >                         "%s has changed FLOODTIME to %u",
109                           get_oper_name(source_p), GlobalSetOptions.floodtime);
110    }
111    else
112 <    sendto_one_notice(source_p, &me, ":FLOODTIME is currently %i",
112 >    sendto_one_notice(source_p, &me, ":FLOODTIME is currently %u",
113                        GlobalSetOptions.floodtime);
114   }
115  
# Line 126 | Line 125 | quote_identtimeout(struct Client *source
125  
126    if (newval > 0)
127    {
129    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
130                         "%s has changed IDENTTIMEOUT to %d",
131                         get_oper_name(source_p), newval);
128      GlobalSetOptions.ident_timeout = newval;
129 +    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
130 +                         "%s has changed IDENTTIMEOUT to %u",
131 +                         get_oper_name(source_p), GlobalSetOptions.ident_timeout);
132    }
133    else
134 <    sendto_one_notice(source_p, &me, ":IDENTTIMEOUT is currently %d",
134 >    sendto_one_notice(source_p, &me, ":IDENTTIMEOUT is currently %u",
135                        GlobalSetOptions.ident_timeout);
136   }
137  
# Line 144 | Line 143 | quote_max(struct Client *source_p, const
143    {
144      if (newval > MAXCLIENTS_MAX)
145      {
146 <      sendto_one_notice(source_p, &me, ":You cannot set MAXCLIENTS to > %d, restoring to %d",
146 >      sendto_one_notice(source_p, &me, ":You cannot set MAXCLIENTS to > %d, restoring to %u",
147                          MAXCLIENTS_MAX, GlobalSetOptions.maxclients);
148        return;
149      }
150  
151      if (newval < MAXCLIENTS_MIN)
152      {
153 <      sendto_one_notice(source_p, &me, ":You cannot set MAXCLIENTS to < %d, restoring to %d",
153 >      sendto_one_notice(source_p, &me, ":You cannot set MAXCLIENTS to < %d, restoring to %u",
154                          MAXCLIENTS_MIN, GlobalSetOptions.maxclients);
155        return;
156      }
157  
158      GlobalSetOptions.maxclients = newval;
160
159      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
160 <        "%s set new MAXCLIENTS to %d (%d current)",
161 <        get_oper_name(source_p), GlobalSetOptions.maxclients, Count.local);
160 >                         "%s set new MAXCLIENTS to %u (%u current)",
161 >                         get_oper_name(source_p), GlobalSetOptions.maxclients, Count.local);
162    }
163    else
164 <    sendto_one_notice(source_p, &me, ":Current MAXCLIENTS = %d (%d)",
164 >    sendto_one_notice(source_p, &me, ":Current MAXCLIENTS = %u (%u)",
165                        GlobalSetOptions.maxclients, Count.local);
166   }
167  
# Line 175 | Line 173 | quote_spamnum(struct Client *source_p, c
173    {
174      if (newval == 0)
175      {
176 +      GlobalSetOptions.spam_num = newval;
177        sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
178                             "%s has disabled ANTI_SPAMBOT", source_p->name);
180      GlobalSetOptions.spam_num = newval;
179        return;
180      }
181  
# Line 199 | Line 197 | quote_spamtime(struct Client *source_p,
197    {
198      GlobalSetOptions.spam_time = IRCD_MAX(newval, MIN_SPAM_TIME);
199      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
200 <                         "%s has changed SPAMTIME to %i",
200 >                         "%s has changed SPAMTIME to %u",
201                           get_oper_name(source_p), GlobalSetOptions.spam_time);
202    }
203    else
204 <    sendto_one_notice(source_p, &me, ":SPAMTIME is currently %i",
204 >    sendto_one_notice(source_p, &me, ":SPAMTIME is currently %u",
205                        GlobalSetOptions.spam_time);
206   }
207  
# Line 213 | Line 211 | quote_jfloodtime(struct Client *source_p
211   {
212    if (newval >= 0)
213    {
216    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
217                         "%s has changed JFLOODTIME to %i",
218                         get_oper_name(source_p), newval);
214      GlobalSetOptions.joinfloodtime = newval;
215 +    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
216 +                         "%s has changed JFLOODTIME to %u",
217 +                         get_oper_name(source_p), GlobalSetOptions.joinfloodtime);
218    }
219    else
220 <    sendto_one_notice(source_p, &me, ":JFLOODTIME is currently %i",
220 >    sendto_one_notice(source_p, &me, ":JFLOODTIME is currently %u",
221                        GlobalSetOptions.joinfloodtime);
222   }
223  
# Line 229 | Line 227 | quote_jfloodcount(struct Client *source_
227   {
228    if (newval >= 0)
229    {
232    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
233                         "%s has changed JFLOODCOUNT to %i",
234                         get_oper_name(source_p), newval);
230      GlobalSetOptions.joinfloodcount = newval;
231 +    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
232 +                         "%s has changed JFLOODCOUNT to %u",
233 +                         get_oper_name(source_p), GlobalSetOptions.joinfloodcount);
234    }
235    else
236 <    sendto_one_notice(source_p, &me, ":JFLOODCOUNT is currently %i",
236 >    sendto_one_notice(source_p, &me, ":JFLOODCOUNT is currently %u",
237                        GlobalSetOptions.joinfloodcount);
238   }
239  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines