From 983668abc9c752b554c6f8de2c6c6dd2168e9eee Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 19 May 2012 18:46:58 +0200 Subject: Fix issue #95 reported by @Joah --- src/modules/m_hideoper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index e22eff106..cde50b1a9 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -101,9 +101,9 @@ class ModuleHideOper : public Module if (user->IsModeSet('H') && !source->HasPrivPermission("users/auspex")) { // hide the "*" that marks the user as an oper from the /WHO line - std::string::size_type pos = line.find("* "); + std::string::size_type pos = line.find("*"); if (pos != std::string::npos) - line.erase(pos); + line.erase(pos, 1); // hide the line completely if doing a "/who * o" query if (params.size() > 1 && params[1].find('o') != std::string::npos) line.clear(); -- cgit v1.2.3