mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Merge pull request #131 from attilamolnar/insp20+hideroperwhofix
[2.0] Fix issue #95 reported by @Joah
This commit is contained in:
commit
196b9a9fb6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user