X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/428f8463393c0c30eb4f1fc5848e3c5052814797..8e2ebdb80add54d46c9f7f058ad469d70ddf9457:/modules/m_set.c diff --git a/modules/m_set.c b/modules/m_set.c index 0224a369..b518625c 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -215,18 +215,18 @@ quote_max(struct Client *source_p, int newval) { 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)", - GlobalSetOptions.maxclients); + sendto_one_notice(source_p, ":You cannot set MAXCLIENTS to < 32 (%d:%d)", + GlobalSetOptions.maxclients, rb_getmaxconnect()); return; }