Core/Players: Allow players to answer gamemaster whispers even if whispers are disabled. Whitelist can be reset by .whispers off

This commit is contained in:
leak
2011-08-13 15:10:45 +02:00
parent 6db242473e
commit af040fc18d
4 changed files with 52 additions and 24 deletions
+2
View File
@@ -610,6 +610,8 @@ bool ChatHandler::HandleWhispersCommand(const char* args)
// whisper off
if (argstr == "off")
{
// Remove all players from the Gamemaster's whisper whitelist
m_session->GetPlayer()->ClearWhisperWhiteList();
m_session->GetPlayer()->SetAcceptWhispers(false);
SendSysMessage(LANG_COMMAND_WHISPEROFF);
return true;