mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-21 23:41:27 -04:00
*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:
parent
dc12fcac87
commit
f7224a0009
@ -593,13 +593,13 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip)
|
|||||||
for (int i = 0; i < MAXCHANS; i++)
|
for (int i = 0; i < MAXCHANS; i++)
|
||||||
clientlist[tempnick]->chans.push_back(a);
|
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");
|
kill_link(clientlist[tempnick],"No more connections allowed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clientlist.size() >= MAXCLIENTS)
|
if (local_users.size() >= MAXCLIENTS)
|
||||||
{
|
{
|
||||||
kill_link(clientlist[tempnick],"No more connections allowed");
|
kill_link(clientlist[tempnick],"No more connections allowed");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user