mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Scripts/Commands: Fix "cannot pass objects of non-trivially-copyable type ‘std::string’ through ‘...’"
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
DELETE FROM `trinity_string` where `entry`=363;
|
||||
DELETE FROM `trinity_string` WHERE `entry`=363;
|
||||
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES
|
||||
(363, 'Player %s cannot whisper you any longer.');
|
||||
@@ -213,12 +213,12 @@ public:
|
||||
if (Player* player = sObjectAccessor->FindPlayerByName(name))
|
||||
{
|
||||
handler->GetSession()->GetPlayer()->RemoveFromWhisperWhiteList(player->GetGUID());
|
||||
handler->PSendSysMessage(LANG_COMMAND_WHISPEROFFPLAYER, name);
|
||||
handler->PSendSysMessage(LANG_COMMAND_WHISPEROFFPLAYER, name.c_str());
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->PSendSysMessage(LANG_PLAYER_NOT_FOUND, name);
|
||||
handler->PSendSysMessage(LANG_PLAYER_NOT_FOUND, name.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user