mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fix crash due to empty channel name
This commit is contained in:
@@ -186,12 +186,15 @@ void SuggestWhatToDoAction::spam(
|
||||
{
|
||||
strToLower(msg);
|
||||
}
|
||||
if (chn->GetName().length() > 0)
|
||||
{
|
||||
chn->Say(bot->GetGUID(), msg.c_str(), LANG_UNIVERSAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class FindTradeItemsVisitor : public IterateItemsVisitor
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user