diff options
author | George Hazan <george.hazan@gmail.com> | 2024-11-20 21:59:37 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-11-20 21:59:37 +0300 |
commit | 562f064fbb05c8d943b4625e988aefc170190252 (patch) | |
tree | 4c8f421798e118ee64e63e123aa0a93b3ff9ed1f /plugins | |
parent | eaa7549c051641579edc045fbbab86c3129e85ee (diff) |
NewStory: fix for nicks for auth & system events
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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];
|