diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/core/os_sqline.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/core/os_sqline.cpp b/modules/core/os_sqline.cpp index 5688351e9..3a49099cc 100644 --- a/modules/core/os_sqline.cpp +++ b/modules/core/os_sqline.cpp @@ -170,12 +170,9 @@ class CommandOSSQLine : public Command reason += " " + params[3]; if (!mask.empty() && !reason.empty()) { - User *user = finduser(mask); - if (user) - mask = "*@" + user->host; unsigned int affected = 0; for (patricia_tree<User *>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it) - if (Anope::Match((*it)->GetIdent() + "@" + (*it)->host, mask)) + if (Anope::Match((*it)->nick, mask)) ++affected; float percent = static_cast<float>(affected) / static_cast<float>(UserListByNick.size()) * 100.0; |
