*FIX* 'No more connections allowed' was comparing against the network-wide limit rather than the local limit (ICK!)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2698 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2005-12-29 19:00:53 +00:00
parent dc12fcac87
commit f7224a0009

View File

@ -593,13 +593,13 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip)
for (int i = 0; i < MAXCHANS; i++)
clientlist[tempnick]->chans.push_back(a);
if (clientlist.size() > Config->SoftLimit)
if (local_users.size() > Config->SoftLimit)
{
kill_link(clientlist[tempnick],"No more connections allowed");
return;
}
if (clientlist.size() >= MAXCLIENTS)
if (local_users.size() >= MAXCLIENTS)
{
kill_link(clientlist[tempnick],"No more connections allowed");
return;