| 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 |
|
{ |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
const char *_version = "$Revision$"; |
| 69 |
– |
#endif |
| 68 |
|
|
| 69 |
|
/* Structure used for the SET table itself */ |
| 70 |
|
struct SetStruct |
| 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); |
| 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 |
|
} |
| 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", |
| 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 |
| 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 |
| 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 |
|
|
| 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 |
| 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", |
| 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", |
| 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 */ |
| 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) |
| 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) |
| 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 |
| 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 |
| 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 |