diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_whois.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index 4893c1251..116e43135 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -30,6 +30,7 @@ class CommandWhois : public SplitCommand { ChanModeReference secretmode; ChanModeReference privatemode; + UserModeReference snomaskmode; void SplitChanList(User* source, User* dest, const std::string& cl); void DoWhois(User* user, User* dest, unsigned long signon, unsigned long idle); @@ -42,6 +43,7 @@ class CommandWhois : public SplitCommand : SplitCommand(parent, "WHOIS", 1) , secretmode(parent, "secret") , privatemode(parent, "private") + , snomaskmode(parent, "snomask") { Penalty = 2; syntax = "<nick>{,<nick>}"; @@ -161,9 +163,9 @@ void CommandWhois::DoWhois(User* user, User* dest, unsigned long signon, unsigne if (user == dest || user->HasPrivPermission("users/auspex")) { - if (dest->IsModeSet('s') != 0) + if (dest->IsModeSet(snomaskmode)) { - ServerInstance->SendWhoisLine(user, dest, 379, "%s %s :is using modes +%s +%s", user->nick.c_str(), dest->nick.c_str(), dest->FormatModes(), dest->FormatNoticeMasks().c_str()); + ServerInstance->SendWhoisLine(user, dest, 379, "%s %s :is using modes +%s %s", user->nick.c_str(), dest->nick.c_str(), dest->FormatModes(), snomaskmode->GetUserParameter(dest).c_str()); } else { |