Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playerbot helper #18

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

atidot3
Copy link

@atidot3 atidot3 commented Jul 31, 2024

Few helper methods for mod-playerbots to allow channel recovery and chathelper formating / getter

@liyunfan1223 liyunfan1223 merged commit 0ba424a into liyunfan1223:Playerbot Aug 1, 2024
12 of 18 checks passed
// 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,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/ubuntu22/azerothcore-wotlk/src/server/game/Chat/Chat.h:66:88: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
ObjectGuid const& senderGuid = ObjectGuid(), std::string_view senderName = nullptr,
^~~~~~~
/home/ubuntu22/azerothcore-wotlk/src/server/game/Chat/Chat.h:67:88: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
ObjectGuid const& targetGuid = ObjectGuid(), std::string_view targetName = nullptr,

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this warning

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::string_view senderName = {} should be okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants