summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src')
-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