diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-05-23 03:18:35 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-05-23 03:18:35 -0700 |
commit | 196b9a9fb6878bdf686ab4e3bbdef2d1c26fe366 (patch) | |
tree | 1c1018b25eaafd242865e5c21c4b1242b913f698 | |
parent | d2804129b78442eab145f64bc8b1627b03d91e67 (diff) | |
parent | 983668abc9c752b554c6f8de2c6c6dd2168e9eee (diff) |
Merge pull request #131 from attilamolnar/insp20+hideroperwhofix
[2.0] 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(); |