diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-25 20:45:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-25 20:45:50 +0300 |
commit | 9aad59651c77743717e36c3c9860964012258a00 (patch) | |
tree | d8c7aecd883730b0e02445acf094303084a784d7 /plugins/NewStory/src/templates.cpp | |
parent | 7dc8f0c12ed80977d1092e0c18f053e294b971f2 (diff) |
NewStory: fix for groupchat nicks
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 1d033d1254..7ccf117a7f 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -151,7 +151,7 @@ void vfEvent(int, TemplateVars *vars, MCONTACT, ItemData *item) vars->SetVar('N', nick, false); } else { - wchar_t *nick = Clist_GetContactDisplayName(item->hContact, 0); + wchar_t *nick = (item->wszNick) ? item->wszNick : Clist_GetContactDisplayName(item->hContact, 0); vars->SetVar('N', nick, false); } |