| 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 *); |
| 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 }, |
| 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 |
|
} |
| 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) |
| 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 |
|
} |
| 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 |
|
} |