aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_hideoper.cpp
diff options
context:
space:
mode:
authorGravatar Robin Burchell2012-05-23 03:18:35 -0700
committerGravatar Robin Burchell2012-05-23 03:18:35 -0700
commit196b9a9fb6878bdf686ab4e3bbdef2d1c26fe366 (patch)
tree1c1018b25eaafd242865e5c21c4b1242b913f698 /src/modules/m_hideoper.cpp
parentMerge pull request #136 from nenolod/bugfix/epoll-nitpicks-2.0 (diff)
parentFix issue #95 reported by @Joah (diff)
Merge pull request #131 from attilamolnar/insp20+hideroperwhofix
[2.0] Fix issue #95 reported by @Joah
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r--src/modules/m_hideoper.cpp4
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();