summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2020-04-03 19:09:43 +0300
committerMataes <mataes2007@gmail.com>2020-04-03 19:09:43 +0300
commit8218936b7712de444a49656d8a50832cea5adc84 (patch)
tree5a635c5fc866fb872db5b1fd30c4ba045096af02 /plugins/NewStory
parent2b47efdf3b09351912a18207d3267eaecdf55f5d (diff)
Newstory: fixed nick showing
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/stdafx.h1
-rw-r--r--plugins/NewStory/src/templates.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewStory/src/stdafx.h b/plugins/NewStory/src/stdafx.h
index dc097c40e1..fe7a59b639 100644
--- a/plugins/NewStory/src/stdafx.h
+++ b/plugins/NewStory/src/stdafx.h
@@ -49,6 +49,7 @@ Boston, MA 02111-1307, USA.
#include "m_icolib.h"
#include "m_fontservice.h"
#include "m_text.h"
+#include "m_contacts.h"
#include "m_smileyadd.h"
//#include "m_nconvers.h"
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