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:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user