Add RPL_WHOREPLY to the list of numerics

Use it instead of the raw number
This commit is contained in:
Attila Molnar 2016-02-26 16:03:00 +01:00
parent 725c954efb
commit 1fd6f04e6d
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ enum
RPL_INVITELIST = 346, // insp-specific (stolen from ircu)
RPL_ENDOFINVITELIST = 347, // insp-specific (stolen from ircu)
RPL_VERSION = 351,
RPL_WHOREPLY = 352,
RPL_NAMREPLY = 353,
RPL_LINKS = 364,
RPL_ENDOFLINKS = 365,

View File

@ -191,7 +191,7 @@ void CommandWho::SendWhoLine(User* user, const std::vector<std::string>& parms,
if (!memb)
memb = get_first_visible_channel(u);
Numeric::Numeric wholine(352);
Numeric::Numeric wholine(RPL_WHOREPLY);
wholine.push(memb ? memb->chan->name : "*").push(u->ident);
wholine.push(opt_showrealhost ? u->host : u->dhost);
if (!ServerInstance->Config->HideWhoisServer.empty() && !user->HasPrivPermission("servers/auspex"))