virtual Version GetVersion()
{
- return Version("Provides support for hiding oper status with user mode +H", VF_COMMON | VF_VENDOR);
+ return Version("Provides support for hiding oper status with user mode +H", VF_VENDOR);
}
ModResult OnWhoisLine(User* user, User* dest, int &numeric, std::string &text)
return MOD_RES_PASSTHRU;
}
- void OnSendWhoLine(User* source, User* user, Channel* channel, std::string& line)
+ void OnSendWhoLine(User* source, const std::vector<std::string>& params, User* user, Channel* channel, std::string& line)
{
if (user->IsModeSet('H') && !source->HasPrivPermission("users/auspex"))
{
std::string::size_type pos = line.find("* ");
if (pos != std::string::npos)
line.erase(pos);
+ // hide the line completely if doing a "/who * o" query
+ if (params.size() > 1 && params[1].find('o') != std::string::npos)
+ line.clear();
}
}
};