summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-23 00:03:50 -0500
committerAdam <Adam@anope.org>2010-12-23 00:03:50 -0500
commit265006b69176e1d8130284c63bcb50a1b67a426f (patch)
tree939d692b9cca761844032c86c917066797f98177 /modules
parent11b3b8a5ff2c287c24e730712b6733ae5cd173d0 (diff)
Fixed deleting expired SXLines
Diffstat (limited to 'modules')
-rw-r--r--modules/core/os_sqline.cpp5
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;