mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
Fix crash due to empty channel name
This commit is contained in:
parent
5600e94e55
commit
f88f49471a
@ -186,12 +186,15 @@ void SuggestWhatToDoAction::spam(
|
|||||||
{
|
{
|
||||||
strToLower(msg);
|
strToLower(msg);
|
||||||
}
|
}
|
||||||
|
if (chn->GetName().length() > 0)
|
||||||
|
{
|
||||||
chn->Say(bot->GetGUID(), msg.c_str(), LANG_UNIVERSAL);
|
chn->Say(bot->GetGUID(), msg.c_str(), LANG_UNIVERSAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class FindTradeItemsVisitor : public IterateItemsVisitor
|
class FindTradeItemsVisitor : public IterateItemsVisitor
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user