138 {
139 if (!operationArg)
140 {
142 return true;
143 }
144
145 if (operationArg->holds_alternative<bool>())
146 {
147 if (operationArg->get<bool>())
148 {
151 return true;
152 }
153 else
154 {
155
159 return true;
160 }
161 }
162
164 {
165 if (!playerNameArg)
166 return false;
167
169 {
171 {
174 return true;
175 }
176 else
177 {
179 return false;
180 }
181 }
182 }
184 return false;
185 }
bool normalizePlayerName(std::string &name)
Definition: ObjectMgr.cpp:206
#define EXACT_SEQUENCE(str)
Definition: ChatCommandTags.h:113
@ LANG_COMMAND_WHISPEROFF
Definition: Language.h:331
@ LANG_USE_BOL
Definition: Language.h:303
@ LANG_OFF
Definition: Language.h:71
@ LANG_COMMAND_WHISPERACCEPTING
Definition: Language.h:329
@ LANG_ON
Definition: Language.h:70
@ LANG_COMMAND_WHISPERON
Definition: Language.h:330
@ LANG_PLAYER_NOT_FOUND
Definition: Language.h:539
@ LANG_COMMAND_WHISPEROFFPLAYER
Definition: Language.h:404
Player * FindPlayerByName(std::string const &name, bool checkInWorld=true)
Definition: ObjectAccessor.cpp:274
void PSendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition: Chat.cpp:213
void SendErrorMessage(uint32 entry)
Definition: Chat.cpp:218
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition: Chat.cpp:162
Definition: Player.h:1064
void SetAcceptWhispers(bool on)
Definition: Player.h:1157
void ClearWhisperWhiteList()
Definition: Player.h:2538
void RemoveFromWhisperWhiteList(ObjectGuid guid)
Definition: Player.h:2541
bool isAcceptWhispers() const
Definition: Player.h:1156
Player * GetPlayer() const
Definition: WorldSession.h:362