/[svn]/ircd-hybrid-7.3/modules/m_set.c
ViewVC logotype

Diff of /ircd-hybrid-7.3/modules/m_set.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1140 by michael, Sat Jul 16 19:46:35 2011 UTC revision 1141 by michael, Sat Jul 16 19:58:28 2011 UTC
# Line 184  quote_autoconn(struct Client *source_p, Line 184  quote_autoconn(struct Client *source_p,
184    
185        sendto_realops_flags(UMODE_ALL, L_ALL,        sendto_realops_flags(UMODE_ALL, L_ALL,
186                             "%s has changed AUTOCONN for %s to %i",                             "%s has changed AUTOCONN for %s to %i",
187                             source_p->name, arg, newval);                             get_oper_name(source_p), arg, newval);
188        sendto_one(source_p,        sendto_one(source_p,
189                   ":%s NOTICE %s :AUTOCONN for %s is now set to %i",                   ":%s NOTICE %s :AUTOCONN for %s is now set to %i",
190                   me.name, source_p->name, arg, newval);                   me.name, source_p->name, arg, newval);
# Line 209  quote_autoconnall(struct Client *source_ Line 209  quote_autoconnall(struct Client *source_
209    if (newval >= 0)    if (newval >= 0)
210    {    {
211      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed AUTOCONNALL to %i",      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed AUTOCONNALL to %i",
212                           source_p->name, newval);                           get_oper_name(source_p), newval);
213    
214      GlobalSetOptions.autoconn = newval;      GlobalSetOptions.autoconn = newval;
215    }    }
# Line 226  quote_floodcount(struct Client *source_p Line 226  quote_floodcount(struct Client *source_p
226    {    {
227      GlobalSetOptions.floodcount = newval;      GlobalSetOptions.floodcount = newval;
228      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
229                           "%s has changed FLOODCOUNT to %i", source_p->name,                           "%s has changed FLOODCOUNT to %i",
230                           GlobalSetOptions.floodcount);                           get_oper_name(source_p), GlobalSetOptions.floodcount);
231    }    }
232    else    else
233      sendto_one(source_p, ":%s NOTICE %s :FLOODCOUNT is currently %i",      sendto_one(source_p, ":%s NOTICE %s :FLOODCOUNT is currently %i",
# Line 267  quote_idletime(struct Client *source_p, Line 267  quote_idletime(struct Client *source_p,
267      {      {
268        sendto_realops_flags(UMODE_ALL, L_ALL,        sendto_realops_flags(UMODE_ALL, L_ALL,
269                             "%s has disabled idletime checking",                             "%s has disabled idletime checking",
270                             source_p->name);                             get_oper_name(source_p));
271        GlobalSetOptions.idletime = 0;        GlobalSetOptions.idletime = 0;
272      }      }
273      else      else
274      {      {
275        sendto_realops_flags(UMODE_ALL, L_ALL,        sendto_realops_flags(UMODE_ALL, L_ALL,
276                             "%s has changed IDLETIME to %i",                             "%s has changed IDLETIME to %i",
277                             source_p->name, newval);                             get_oper_name(source_p), newval);
278        GlobalSetOptions.idletime = (newval*60);        GlobalSetOptions.idletime = (newval * 60);
279      }      }
280    }    }
281    else    else
# Line 302  quote_log(struct Client *source_p, int n Line 302  quote_log(struct Client *source_p, int n
302        newval = L_DEBUG;        newval = L_DEBUG;
303    
304      set_log_level(newval);      set_log_level(newval);
305      sendto_realops_flags(UMODE_ALL, L_ALL,"%s has changed LOG level to %i (%s)",      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed LOG level to %i (%s)",
306                           source_p->name, get_log_level(),                           get_oper_name(source_p), get_log_level(),
307                           get_log_level_as_string(get_log_level()));                           get_log_level_as_string(get_log_level()));
308    }    }
309    else    else
# Line 339  quote_max(struct Client *source_p, int n Line 339  quote_max(struct Client *source_p, int n
339      ServerInfo.max_clients = newval;      ServerInfo.max_clients = newval;
340    
341      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
342          "%s!%s@%s set new MAXCLIENTS to %d (%d current)",          "%s set new MAXCLIENTS to %d (%d current)",
343          source_p->name, source_p->username, source_p->host,          get_oper_name(source_p), source_p->username, source_p->host,
344          ServerInfo.max_clients, Count.local);          ServerInfo.max_clients, Count.local);
345    }    }
346    else    else
# Line 379  quote_spamnum(struct Client *source_p, i Line 379  quote_spamnum(struct Client *source_p, i
379      }      }
380    
381      GlobalSetOptions.spam_num = IRCD_MAX(newval, MIN_SPAM_NUM);      GlobalSetOptions.spam_num = IRCD_MAX(newval, MIN_SPAM_NUM);
382      sendto_realops_flags(UMODE_ALL, L_ALL,"%s has changed SPAMNUM to %i",      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMNUM to %i",
383                           source_p->name, GlobalSetOptions.spam_num);                           get_oper_name(source_p), GlobalSetOptions.spam_num);
384    }    }
385    else    else
386      sendto_one(source_p, ":%s NOTICE %s :SPAMNUM is currently %i",      sendto_one(source_p, ":%s NOTICE %s :SPAMNUM is currently %i",
# Line 395  quote_spamtime(struct Client *source_p, Line 395  quote_spamtime(struct Client *source_p,
395    {    {
396      GlobalSetOptions.spam_time = IRCD_MAX(newval, MIN_SPAM_TIME);      GlobalSetOptions.spam_time = IRCD_MAX(newval, MIN_SPAM_TIME);
397      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMTIME to %i",      sendto_realops_flags(UMODE_ALL, L_ALL, "%s has changed SPAMTIME to %i",
398                           source_p->name, GlobalSetOptions.spam_time);                           get_oper_name(source_p), GlobalSetOptions.spam_time);
399    }    }
400    else    else
401      sendto_one(source_p, ":%s NOTICE %s :SPAMTIME is currently %i",      sendto_one(source_p, ":%s NOTICE %s :SPAMTIME is currently %i",
# Line 476  quote_splitmode(struct Client *source_p, Line 476  quote_splitmode(struct Client *source_p,
476       */       */
477      sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s",      sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s",
478                 me.name, source_p->name,                 me.name, source_p->name,
479                 splitmode_status[(splitchecking + (splitmode*2))]);                 splitmode_status[(splitchecking + (splitmode * 2))]);
480  }  }
481    
482  /* SET SPLITNUM */  /* SET SPLITNUM */
# Line 487  quote_splitnum(struct Client *source_p, Line 487  quote_splitnum(struct Client *source_p,
487    {    {
488      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
489                           "%s has changed SPLITNUM to %i",                           "%s has changed SPLITNUM to %i",
490                           source_p->name, newval);                           get_oper_name(source_p), newval);
491      split_servers = newval;      split_servers = newval;
492    
493      if (splitchecking)      if (splitchecking)
# Line 506  quote_splitusers(struct Client *source_p Line 506  quote_splitusers(struct Client *source_p
506    {    {
507      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
508                           "%s has changed SPLITUSERS to %i",                           "%s has changed SPLITUSERS to %i",
509                           source_p->name, newval);                           get_oper_name(source_p), newval);
510      split_users = newval;      split_users = newval;
511    
512      if (splitchecking)      if (splitchecking)
# Line 525  quote_jfloodtime(struct Client *source_p Line 525  quote_jfloodtime(struct Client *source_p
525    {    {
526      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
527                           "%s has changed JFLOODTIME to %i",                           "%s has changed JFLOODTIME to %i",
528                           source_p->name, newval);                           get_oper_name(source_p), newval);
529      GlobalSetOptions.joinfloodtime = newval;      GlobalSetOptions.joinfloodtime = newval;
530    }    }
531    else    else
# Line 541  quote_jfloodcount(struct Client *source_ Line 541  quote_jfloodcount(struct Client *source_
541    {    {
542      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
543                           "%s has changed JFLOODCOUNT to %i",                           "%s has changed JFLOODCOUNT to %i",
544                           source_p->name, newval);                           get_oper_name(source_p), newval);
545      GlobalSetOptions.joinfloodcount = newval;      GlobalSetOptions.joinfloodcount = newval;
546    }    }
547    else    else
# Line 557  quote_rejecttime(struct Client *source_p Line 557  quote_rejecttime(struct Client *source_p
557    {    {
558      sendto_realops_flags(UMODE_ALL, L_ALL,      sendto_realops_flags(UMODE_ALL, L_ALL,
559                           "%s has changed REJECTTIME to %i seconds",                           "%s has changed REJECTTIME to %i seconds",
560                           source_p->name, newval);                           get_oper_name(source_p), newval);
561      GlobalSetOptions.rejecttime = newval;      GlobalSetOptions.rejecttime = newval;
562    }    }
563    else    else

Legend:
Removed from v.1140  
changed lines
  Added in v.1141

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28