From 38733b435d68429add3aa500f15ad2a59c9c659f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Jun 2020 16:02:43 +0300 Subject: fixes #2418 (NewStory: add event count to system history) --- 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 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]; -- cgit v1.2.3