#include "stdinc.h"
#include "client.h"
-#include "event.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
#include "ircd.h"
#include "numeric.h"
-#include "commio.h"
#include "s_serv.h"
#include "send.h"
#include "common.h"
{
if(newval > 0)
{
- if(newval > ServerInfo.max_clients)
+ if(newval > maxconnections - MAX_BUFFER)
{
sendto_one_notice(source_p,
- ":You cannot set MAXCLIENTS to > max_clients (%d)",
- ServerInfo.max_clients);
+ ":You cannot set MAXCLIENTS to > %d",
+ maxconnections - MAX_BUFFER);
return;
}
if(newval < 32)
{
sendto_one_notice(source_p, ":You cannot set MAXCLIENTS to < 32 (%d:%d)",
- GlobalSetOptions.maxclients, highest_fd);
+ GlobalSetOptions.maxclients, rb_getmaxconnect());
return;
}
}
else
{
- strlcpy(GlobalSetOptions.operstring, arg,
+ rb_strlcpy(GlobalSetOptions.operstring, arg,
sizeof(GlobalSetOptions.operstring));
sendto_realops_snomask(SNO_GENERAL, L_ALL,
}
else
{
- strlcpy(GlobalSetOptions.adminstring, arg,
+ rb_strlcpy(GlobalSetOptions.adminstring, arg,
sizeof(GlobalSetOptions.adminstring));
sendto_realops_snomask(SNO_GENERAL, L_ALL,
splitmode = 0;
splitchecking = 0;
- eventDelete(check_splitmode, NULL);
+ rb_event_delete(check_splitmode_ev);
+ check_splitmode_ev = NULL;
}
/* ON */
else if(newval == 1)
splitchecking = 0;
/* we might be deactivating an automatic splitmode, so pull the event */
- eventDelete(check_splitmode, NULL);
+ rb_event_delete(check_splitmode_ev);
+ check_splitmode_ev = NULL;
}
/* AUTO */
else if(newval == 2)