summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-19 22:46:28 -0400
committerAdam <Adam@anope.org>2014-05-19 22:46:28 -0400
commit13ea98a02e58777db33c262b4bc27c22fb441b21 (patch)
tree50080a174f97bee967c2ee1c4ca3d45f607a6972
parentdb56a61f86fad54c7b95f020fe67057d84f89e46 (diff)
Fix server usercounter not being incremented when servers are bursting
-rw-r--r--src/users.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 9b790a98c..94ab75fb4 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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)