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-7.2/modules/m_set.c (file contents), Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC vs.
ircd-hybrid-7.3/modules/m_set.c (file contents), Revision 1141 by michael, Sat Jul 16 19:58:28 2011 UTC

# Line 52 | Line 52 | struct Message set_msgtab = {
52    {m_unregistered, m_not_oper, rfc1459_command_send_error, m_ignore, mo_set, m_ignore}
53   };
54  
55 – #ifndef STATIC_MODULES
55   void
56   _modinit(void)
57   {
# Line 66 | Line 65 | _moddeinit(void)
65   }
66  
67   const char *_version = "$Revision$";
69 – #endif
68  
69   /* Structure used for the SET table itself */
70   struct SetStruct
# Line 186 | Line 184 | quote_autoconn(struct Client *source_p,
184  
185        sendto_realops_flags(UMODE_ALL, L_ALL,
186                             "%s has changed AUTOCONN for %s to %i",
187 <                           source_p->name, arg, newval);
187 >                           get_oper_name(source_p), arg, newval);
188        sendto_one(source_p,
189                   ":%s NOTICE %s :AUTOCONN for %s is now set to %i",
190                   me.name, source_p->name, arg, newval);
# Line 211 | Line 209 | quote_autoconnall(struct Client *source_
209    if (newval >= 0)
210    {
211      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed AUTOCONNALL to %i",
212 <                         source_p->name, newval);
212 >                         get_oper_name(source_p), newval);
213  
214      GlobalSetOptions.autoconn = newval;
215    }
# Line 228 | Line 226 | quote_floodcount(struct Client *source_p
226    {
227      GlobalSetOptions.floodcount = newval;
228      sendto_realops_flags(UMODE_ALL, L_ALL,
229 <                         "%s has changed FLOODCOUNT to %i", source_p->name,
230 <                         GlobalSetOptions.floodcount);
229 >                         "%s has changed FLOODCOUNT to %i",
230 >                         get_oper_name(source_p), GlobalSetOptions.floodcount);
231    }
232    else
233      sendto_one(source_p, ":%s NOTICE %s :FLOODCOUNT is currently %i",
# Line 269 | Line 267 | quote_idletime(struct Client *source_p,
267      {
268        sendto_realops_flags(UMODE_ALL, L_ALL,
269                             "%s has disabled idletime checking",
270 <                           source_p->name);
270 >                           get_oper_name(source_p));
271        GlobalSetOptions.idletime = 0;
272      }
273      else
274      {
275        sendto_realops_flags(UMODE_ALL, L_ALL,
276                             "%s has changed IDLETIME to %i",
277 <                           source_p->name, newval);
278 <      GlobalSetOptions.idletime = (newval*60);
277 >                           get_oper_name(source_p), newval);
278 >      GlobalSetOptions.idletime = (newval * 60);
279      }
280    }
281    else
# Line 304 | Line 302 | quote_log(struct Client *source_p, int n
302        newval = L_DEBUG;
303  
304      set_log_level(newval);
305 <    sendto_realops_flags(UMODE_ALL, L_ALL,"%s has changed LOG level to %i (%s)",
306 <                         source_p->name, get_log_level(),
305 >    sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed LOG level to %i (%s)",
306 >                         get_oper_name(source_p), get_log_level(),
307                           get_log_level_as_string(get_log_level()));
308    }
309    else
# Line 326 | Line 324 | quote_max(struct Client *source_p, int n
324      {
325        sendto_one(source_p,
326          ":%s NOTICE %s :You cannot set MAXCLIENTS to > %d, restoring to %d",
327 <        me.name, source_p->name, MAXCLIENTS_MAX);
327 >        me.name, source_p->name, MAXCLIENTS_MAX, ServerInfo.max_clients);
328        return;
329      }
330  
# Line 341 | Line 339 | quote_max(struct Client *source_p, int n
339      ServerInfo.max_clients = newval;
340  
341      sendto_realops_flags(UMODE_ALL, L_ALL,
342 <        "%s!%s@%s set new MAXCLIENTS to %d (%d current)",
343 <        source_p->name, source_p->username, source_p->host,
342 >        "%s set new MAXCLIENTS to %d (%d current)",
343 >        get_oper_name(source_p), source_p->username, source_p->host,
344          ServerInfo.max_clients, Count.local);
345    }
346    else
# Line 381 | Line 379 | quote_spamnum(struct Client *source_p, i
379      }
380  
381      GlobalSetOptions.spam_num = IRCD_MAX(newval, MIN_SPAM_NUM);
382 <    sendto_realops_flags(UMODE_ALL, L_ALL,"%s has changed SPAMNUM to %i",
383 <                         source_p->name, GlobalSetOptions.spam_num);
382 >    sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMNUM to %i",
383 >                         get_oper_name(source_p), GlobalSetOptions.spam_num);
384    }
385    else
386      sendto_one(source_p, ":%s NOTICE %s :SPAMNUM is currently %i",
# Line 397 | Line 395 | quote_spamtime(struct Client *source_p,
395    {
396      GlobalSetOptions.spam_time = IRCD_MAX(newval, MIN_SPAM_TIME);
397      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMTIME to %i",
398 <                         source_p->name, GlobalSetOptions.spam_time);
398 >                         get_oper_name(source_p), GlobalSetOptions.spam_time);
399    }
400    else
401      sendto_one(source_p, ":%s NOTICE %s :SPAMTIME is currently %i",
# Line 478 | Line 476 | quote_splitmode(struct Client *source_p,
476       */
477      sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s",
478                 me.name, source_p->name,
479 <               splitmode_status[(splitchecking + (splitmode*2))]);
479 >               splitmode_status[(splitchecking + (splitmode * 2))]);
480   }
481  
482   /* SET SPLITNUM */
# Line 489 | Line 487 | quote_splitnum(struct Client *source_p,
487    {
488      sendto_realops_flags(UMODE_ALL, L_ALL,
489                           "%s has changed SPLITNUM to %i",
490 <                         source_p->name, newval);
490 >                         get_oper_name(source_p), newval);
491      split_servers = newval;
492  
493      if (splitchecking)
# Line 508 | Line 506 | quote_splitusers(struct Client *source_p
506    {
507      sendto_realops_flags(UMODE_ALL, L_ALL,
508                           "%s has changed SPLITUSERS to %i",
509 <                         source_p->name, newval);
509 >                         get_oper_name(source_p), newval);
510      split_users = newval;
511  
512      if (splitchecking)
# Line 527 | Line 525 | quote_jfloodtime(struct Client *source_p
525    {
526      sendto_realops_flags(UMODE_ALL, L_ALL,
527                           "%s has changed JFLOODTIME to %i",
528 <                         source_p->name, newval);
528 >                         get_oper_name(source_p), newval);
529      GlobalSetOptions.joinfloodtime = newval;
530    }
531    else
# Line 543 | Line 541 | quote_jfloodcount(struct Client *source_
541    {
542      sendto_realops_flags(UMODE_ALL, L_ALL,
543                           "%s has changed JFLOODCOUNT to %i",
544 <                         source_p->name, newval);
544 >                         get_oper_name(source_p), newval);
545      GlobalSetOptions.joinfloodcount = newval;
546    }
547    else
# Line 559 | Line 557 | quote_rejecttime(struct Client *source_p
557    {
558      sendto_realops_flags(UMODE_ALL, L_ALL,
559                           "%s has changed REJECTTIME to %i seconds",
560 <                         source_p->name, newval);
560 >                         get_oper_name(source_p), newval);
561      GlobalSetOptions.rejecttime = newval;
562    }
563    else

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)