diff options
author | Adam <Adam@anope.org> | 2014-05-19 22:46:28 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-05-19 22:46:28 -0400 |
commit | 13ea98a02e58777db33c262b4bc27c22fb441b21 (patch) | |
tree | 50080a174f97bee967c2ee1c4ca3d45f607a6972 /src/users.cpp | |
parent | db56a61f86fad54c7b95f020fe67057d84f89e46 (diff) |
Fix server usercounter not being incremented when servers are bursting
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 5 |
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) |