diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-05-19 18:46:58 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-05-19 18:46:58 +0200 |
commit | 983668abc9c752b554c6f8de2c6c6dd2168e9eee (patch) | |
tree | 7bd4816007d3049fb2bc429a1be3e130d4905f57 | |
parent | 2916ae7c920c069ff180f0224b2dc953bbd32501 (diff) |
Fix issue #95 reported by @Joah
-rw-r--r-- | src/modules/m_hideoper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |