Merge pull request #131 from attilamolnar/insp20+hideroperwhofix

[2.0] Fix issue #95 reported by @Joah
This commit is contained in:
Robin Burchell 2012-05-23 03:18:35 -07:00
commit 196b9a9fb6

View File

@ -103,7 +103,7 @@ class ModuleHideOper : public Module
// hide the "*" that marks the user as an oper from the /WHO line
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();