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 1736 by michael, Sun Jan 13 09:31:46 2013 UTC vs.
Revision 1832 by michael, Fri Apr 19 19:16:09 2013 UTC

# Line 58 | Line 58 | static void quote_autoconnall(struct Cli
58   static void quote_floodcount(struct Client *, int);
59   static void quote_identtimeout(struct Client *, int);
60   static void quote_max(struct Client *, int);
61 static void quote_msglocale(struct Client *, char *);
61   static void quote_spamnum(struct Client *, int);
62   static void quote_spamtime(struct Client *, int);
63   static void quote_splitmode(struct Client *, char *);
# Line 85 | Line 84 | static const struct SetStruct set_cmd_ta
84    { "FLOODCOUNT",       quote_floodcount,       0,      1 },
85    { "IDENTTIMEOUT",     quote_identtimeout,     0,      1 },
86    { "MAX",              quote_max,              0,      1 },
88  { "MSGLOCALE",        quote_msglocale,        1,      0 },
87    { "SPAMNUM",          quote_spamnum,          0,      1 },
88    { "SPAMTIME",         quote_spamtime,         0,      1 },
89    { "SPLITMODE",        quote_splitmode,        1,      0 },
# Line 208 | Line 206 | quote_identtimeout(struct Client *source
206   {
207    if (!HasUMode(source_p, UMODE_ADMIN))
208    {
209 <    sendto_one(source_p, form_str(ERR_NOPRIVS),
209 >    sendto_one(source_p, ERR_NOPRIVS,
210                 me.name, source_p->name, "set");
211      return;
212    }
# Line 258 | Line 256 | quote_max(struct Client *source_p, int n
256                 me.name, source_p->name, ServerInfo.max_clients, Count.local);
257   }
258  
261 /* SET MSGLOCALE */
262 static void
263 quote_msglocale(struct Client *source_p, char *locale)
264 {
265  if (locale != NULL)
266  {
267    set_locale(locale);
268    rebuild_isupport_message_line();
269    sendto_one(source_p, ":%s NOTICE %s :Set MSGLOCALE to '%s'",
270               me.name, source_p->name, get_locale());
271  }
272  else
273    sendto_one(source_p, ":%s NOTICE %s :MSGLOCALE is currently '%s'",
274               me.name, source_p->name, get_locale());
275 }
276
259   /* SET SPAMNUM */
260   static void
261   quote_spamnum(struct Client *source_p, int newval)
# Line 477 | Line 459 | mo_set(struct Client *client_p, struct C
459  
460    if (!HasOFlag(source_p, OPER_FLAG_SET))
461    {
462 <    sendto_one(source_p, form_str(ERR_NOPRIVS),
462 >    sendto_one(source_p, ERR_NOPRIVS,
463                 me.name, source_p->name, "set");
464      return;
465    }
# Line 521 | Line 503 | mo_set(struct Client *client_p, struct C
503  
504          if (!strcmp(tab->name, "AUTOCONN") && (parc < 4))
505          {
506 <          sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
506 >          sendto_one(source_p, ERR_NEEDMOREPARAMS,
507                       me.name, source_p->name, "SET");
508            return;
509          }

Diff Legend

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