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,7 +186,10 @@ void SuggestWhatToDoAction::spam(
|
|||||||
{
|
{
|
||||||
strToLower(msg);
|
strToLower(msg);
|
||||||
}
|
}
|
||||||
chn->Say(bot->GetGUID(), msg.c_str(), LANG_UNIVERSAL);
|
if (chn->GetName().length() > 0)
|
||||||
|
{
|
||||||
|
chn->Say(bot->GetGUID(), msg.c_str(), LANG_UNIVERSAL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user