1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 18:16:38 +02:00

Fix server usercounter not being incremented when servers are bursting

This commit is contained in:
Adam
2014-05-19 22:46:28 -04:00
parent db56a61f86
commit 13ea98a02e
+3 -2
View File
@@ -68,10 +68,11 @@ User::User(const Anope::string &snick, const Anope::string &sident, const Anope:
this->Login(account);
this->UpdateHost();
if (sserver && sserver->IsSynced()) // Our bots are introduced on startup with no server
if (sserver) // Our bots are introduced on startup with no server
{
++sserver->users;
Log(this, "connect") << (!vhost.empty() && vhost != host ? "(" + vhost + ") " : "") << "(" << srealname << ") " << (!sip.empty() && sip != host ? "[" + sip + "] " : "") << "connected to the network (" << sserver->GetName() << ")";
if (server->IsSynced())
Log(this, "connect") << (!vhost.empty() && vhost != host ? "(" + vhost + ") " : "") << "(" << srealname << ") " << (!sip.empty() && sip != host ? "[" + sip + "] " : "") << "connected to the network (" << sserver->GetName() << ")";
}
if (UserListByNick.size() > MaxUserCount)