mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix crash due to empty channel name
This commit is contained in:
parent
5600e94e55
commit
f88f49471a
@ -186,7 +186,10 @@ void SuggestWhatToDoAction::spam(
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user