From 265006b69176e1d8130284c63bcb50a1b67a426f Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 23 Dec 2010 00:03:50 -0500 Subject: Fixed deleting expired SXLines --- modules/core/os_sqline.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules') 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::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(affected) / static_cast(UserListByNick.size()) * 100.0; -- cgit