From 8218936b7712de444a49656d8a50832cea5adc84 Mon Sep 17 00:00:00 2001 From: Mataes Date: Fri, 3 Apr 2020 19:09:43 +0300 Subject: Newstory: fixed nick showing --- plugins/NewStory/src/templates.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/NewStory/src/templates.cpp') diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index a87f86c466..a0bfb85259 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -259,7 +259,8 @@ void vfEvent(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item) // %U: UIN (contextual, own uin for sent, buddys UIN for received messages) // %N: Nickname - wchar_t *buff = Clist_GetContactDisplayName(item->dbe.flags&DBEF_SENT ? 0 : (WPARAM)item->hContact, 0); + char* proto = Proto_GetBaseAccountName(item->hContact); + wchar_t *buff = Contact_GetInfo(CNF_NICK, item->dbe.flags & DBEF_SENT ? 0 : (WPARAM)item->hContact, proto); TplSetVar(vars, 'N', buff, false); // %I: Icon -- cgit v1.2.3