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

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

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

revision 8892 by michael, Sat Jan 19 02:47:39 2019 UTC revision 8893 by michael, Sun Apr 21 14:12:35 2019 UTC
# Line 119  quote_floodtime(struct Client *source_p, Line 119  quote_floodtime(struct Client *source_p,
119                        GlobalSetOptions.floodtime);                        GlobalSetOptions.floodtime);
120  }  }
121    
 /* SET IDENTTIMEOUT */  
 static void  
 quote_identtimeout(struct Client *source_p, const char *arg, int newval)  
 {  
   if (!HasOFlag(source_p, OPER_FLAG_ADMIN))  
   {  
     sendto_one_numeric(source_p, &me, ERR_NOPRIVS, "admin");  
     return;  
   }  
   
   if (newval > 0)  
   {  
     GlobalSetOptions.ident_timeout = newval;  
     sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,  
                          "%s has changed IDENTTIMEOUT to %u",  
                          get_oper_name(source_p), GlobalSetOptions.ident_timeout);  
   }  
   else  
     sendto_one_notice(source_p, &me, ":IDENTTIMEOUT is currently %u",  
                       GlobalSetOptions.ident_timeout);  
 }  
   
122  /* SET MAX */  /* SET MAX */
123  static void  static void
124  quote_max(struct Client *source_p, const char *arg, int newval)  quote_max(struct Client *source_p, const char *arg, int newval)
# Line 262  static const struct SetStruct set_cmd_ta Line 240  static const struct SetStruct set_cmd_ta
240    { "AUTOCONNALL",      quote_autoconnall,  false,  true  },    { "AUTOCONNALL",      quote_autoconnall,  false,  true  },
241    { "FLOODCOUNT",       quote_floodcount,   false,  true  },    { "FLOODCOUNT",       quote_floodcount,   false,  true  },
242    { "FLOODTIME",        quote_floodtime,    false,  true  },    { "FLOODTIME",        quote_floodtime,    false,  true  },
   { "IDENTTIMEOUT",     quote_identtimeout, false,  true  },  
243    { "MAX",              quote_max,          false,  true  },    { "MAX",              quote_max,          false,  true  },
244    { "SPAMNUM",          quote_spamnum,      false,  true  },    { "SPAMNUM",          quote_spamnum,      false,  true  },
245    { "SPAMTIME",         quote_spamtime,     false,  true  },    { "SPAMTIME",         quote_spamtime,     false,  true  },

Legend:
Removed from v.8892  
changed lines
  Added in v.8893

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