diff options
| author | 2014-03-17 11:05:09 +0100 | |
|---|---|---|
| committer | 2014-03-17 11:05:09 +0100 | |
| commit | d60103cada2c954f6d735c0ae4fb7d9b1b5ed844 (patch) | |
| tree | 43e0dfde15c012ad9e6e86ab615a6054968639c9 /src/modules/m_check.cpp | |
| parent | m_connectban Don't depend on the definition of clonemap (diff) | |
| download | inspircd++-d60103cada2c954f6d735c0ae4fb7d9b1b5ed844.tar.gz inspircd++-d60103cada2c954f6d735c0ae4fb7d9b1b5ed844.tar.bz2 inspircd++-d60103cada2c954f6d735c0ae4fb7d9b1b5ed844.zip | |
Rewrite clone counting to use one map instead of two
Diffstat (limited to 'src/modules/m_check.cpp')
| -rw-r--r-- | src/modules/m_check.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index d7cfe74bd..ad0e2394d 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -230,8 +230,9 @@ class CommandCheck : public Command /* * Unlike Asuka, I define a clone as coming from the same host. --w00t */ - user->SendText("%s member %-3lu %s%s (%s@%s) %s ", - checkstr.c_str(), ServerInstance->Users->GlobalCloneCount(i->first), + const UserManager::CloneCounts& clonecount = ServerInstance->Users->GetCloneCounts(i->first); + user->SendText("%s member %-3u %s%s (%s@%s) %s ", + checkstr.c_str(), clonecount.global, i->second->GetAllPrefixChars(), i->first->nick.c_str(), i->first->ident.c_str(), i->first->dhost.c_str(), i->first->fullname.c_str()); } |
