From 562f064fbb05c8d943b4625e988aefc170190252 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Nov 2024 21:59:37 +0300 Subject: NewStory: fix for nicks for auth & system events --- plugins/NewStory/src/templates.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 800d73b749..b0b93524fc 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -516,7 +516,7 @@ void vfContact(TemplateVars *vars, MCONTACT hContact, ItemData *) { // %N: buddy's nick (not for messages) wchar_t *nick = (hContact == 0) ? TranslateT("System history") : Clist_GetContactDisplayName(hContact, 0); - vars->SetVar('N', nick, false); + vars->SetNick(nick); wchar_t buf[20]; // %c: event count @@ -527,7 +527,7 @@ void vfContact(TemplateVars *vars, MCONTACT hContact, ItemData *) void vfSystem(TemplateVars *vars, MCONTACT hContact, ItemData *) { // %N: buddy's nick (not for messages) - vars->SetVar('N', TranslateT("System event"), false); + vars->SetNick(TranslateT("System event")); // %c: event count wchar_t buf[20]; -- cgit v1.2.3