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:208
@ 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
#define EXACT_SEQUENCE(str)
Definition: ChatCommandTags.h:109
Player * FindPlayerByName(std::string const &name, bool checkInWorld=true)
Definition: ObjectAccessor.cpp:271
void PSendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition: Chat.cpp:210
void SendErrorMessage(uint32 entry)
Definition: Chat.cpp:215
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition: Chat.cpp:159
Definition: Player.h:1081
void SetAcceptWhispers(bool on)
Definition: Player.h:1174
void ClearWhisperWhiteList()
Definition: Player.h:2558
void RemoveFromWhisperWhiteList(ObjectGuid guid)
Definition: Player.h:2561
bool isAcceptWhispers() const
Definition: Player.h:1173
Player * GetPlayer() const
Definition: WorldSession.h:362