diff options
Diffstat (limited to 'modules/core/os_akill.cpp')
-rw-r--r-- | modules/core/os_akill.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/os_akill.cpp b/modules/core/os_akill.cpp index a6f40c9ed..6ccb33e92 100644 --- a/modules/core/os_akill.cpp +++ b/modules/core/os_akill.cpp @@ -176,8 +176,8 @@ class CommandOSAKill : public Command if (user) mask = "*@" + user->host; unsigned int affected = 0; - for (patricia_tree<User *, ci::ci_char_traits>::iterator it(UserListByNick); it.next();) - if (Anope::Match((*it)->GetIdent() + "@" + (*it)->host, mask)) + for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) + if (Anope::Match(it->second->GetIdent() + "@" + it->second->host, mask)) ++affected; float percent = static_cast<float>(affected) / static_cast<float>(UserListByNick.size()) * 100.0; |