Merge pull request #20 from atidot3/Playerbot

Fix last modification warning chat.h
This commit is contained in:
Yunfan Li
2024-08-03 21:44:04 +08:00
committed by GitHub

View File

@@ -63,9 +63,9 @@ public:
// All in one chat message builder
static void BuildChatPacket(
WorldPacket& data, ChatMsg msgtype, std::string_view message, Language language = LANG_UNIVERSAL, PlayerChatTag chatTag = CHAT_TAG_NONE,
ObjectGuid const& senderGuid = ObjectGuid(), std::string_view senderName = nullptr,
ObjectGuid const& targetGuid = ObjectGuid(), std::string_view targetName = nullptr,
std::string_view channelName = nullptr, uint32 achievementId = 0);
ObjectGuid const& senderGuid = ObjectGuid(), std::string_view senderName = {},
ObjectGuid const& targetGuid = ObjectGuid(), std::string_view targetName = {},
std::string_view channelName = {}, uint32 achievementId = 0);
static char* LineFromMessage(char*& pos) { char* start = strtok(pos, "\n"); pos = nullptr; return start; }