Merge pull request #366 from Vultraz/master
Allow [message] image= to have 'none' as a value
This commit is contained in:
commit
98035521aa
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue