Skip to content

Commit

Permalink
Fix world chat for custom channels
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzymore committed Jan 22, 2025
1 parent 4c821a7 commit 2608ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#

.directory
.idea
.mailmap
*.orig
*.rej
Expand Down
2 changes: 1 addition & 1 deletion src/WorldChat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class WorldChat_Announce : public PlayerScript

void OnChat(Player* player, uint32 /*type*/, uint32 lang, std::string& msg, Channel* channel)
{
if (WC_Config.ChannelName != "" && lang != LANG_ADDON && channel->GetName() != WC_Config.ChannelName)
if (WC_Config.ChannelName != "" && lang != LANG_ADDON && channel->GetName() == WC_Config.ChannelName)
{
SendWorldMessage(player, msg, -1);
msg = -1;
Expand Down

0 comments on commit 2608ab5

Please sign in to comment.