Merge pull request #366 from Vultraz/master

Allow [message] image= to have 'none' as a value
This commit is contained in:
Charles Dang 2015-01-12 19:59:33 +11:00
commit 98035521aa

View file

@ -311,6 +311,11 @@ namespace { // Support functions
std::string get_image(const vconfig& cfg, unit_map::iterator speaker)
{
std::string image = cfg["image"];
if (image == "none") {
return "";
}
if (image.empty() && speaker != resources::units->end())
{
image = speaker->big_profile();