From 9aad59651c77743717e36c3c9860964012258a00 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Apr 2020 20:45:50 +0300 Subject: NewStory: fix for groupchat nicks --- plugins/NewStory/src/templates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/NewStory/src/templates.cpp') 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); } -- cgit v1.2.3