summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/templates.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-05 16:02:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-05 16:02:43 +0300
commit38733b435d68429add3aa500f15ad2a59c9c659f (patch)
tree33bd701c254138c54b4e4a9f5a8f52acffb4bff2 /plugins/NewStory/src/templates.cpp
parent0f8f4280e75d59bfc2bbaade8449b3d6f46deebd (diff)
fixes #2418 (NewStory: add event count to system history)
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r--plugins/NewStory/src/templates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 82b3244d91..b247a37efa 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -127,7 +127,7 @@ void vfGlobal(int, TemplateVars *vars, MCONTACT hContact, ItemData *)
void vfContact(int, TemplateVars *vars, MCONTACT hContact, ItemData *)
{
// %N: buddy's nick (not for messages)
- wchar_t *nick = Clist_GetContactDisplayName(hContact, 0);
+ wchar_t *nick = (hContact == 0) ? TranslateT("System history") : Clist_GetContactDisplayName(hContact, 0);
vars->SetVar('N', nick, false);
wchar_t buf[20];