// A user specified label for the WHOX response.
std::string whox_querytype;
- WhoData(const std::vector<std::string>& parameters)
+ WhoData(const CommandBase::Params& parameters)
: whox(false)
{
// Find the matchtext and swap the 0 for a * so we can use InspIRCd::Match on it.
/** Sends a WHO reply to a user. */
void SendWhoLine(LocalUser* user, const std::vector<std::string>& parameters, Membership* memb, User* u, WhoData& data);
- CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user) CXX11_OVERRIDE;
+ CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE;
};
template<> User* CommandWho::GetUser(UserManager::OperList::const_iterator& t) { return *t; }
// The source wants to match against users' real names.
else if (data.flags['r'])
- match = InspIRCd::Match(user->fullname, data.matchtext, ascii_case_insensitive_map);
+ match = InspIRCd::Match(user->GetRealName(), data.matchtext, ascii_case_insensitive_map);
else if (data.flags['s'])
{
}
if (!match)
- match = InspIRCd::Match(user->fullname, data.matchtext, ascii_case_insensitive_map);
+ match = InspIRCd::Match(user->GetRealName(), data.matchtext, ascii_case_insensitive_map);
if (!match)
match = InspIRCd::Match(user->nick, data.matchtext);
// Include the user's real name.
if (data.whox_fields['r'])
- wholine.push(user->fullname);
+ wholine.push(user->GetRealName());
}
else
{
// Include the number of hops between the users and the user's real name.
wholine.push("0 ");
- wholine.GetParams().back().append(user->fullname);
+ wholine.GetParams().back().append(user->GetRealName());
}
ModResult res;
data.results.push_back(wholine);
}
-CmdResult CommandWho::HandleLocal(const std::vector<std::string>& parameters, LocalUser* user)
+CmdResult CommandWho::HandleLocal(LocalUser* user, const Params& parameters)
{
WhoData data(parameters);