summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/templates.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2020-04-07 22:34:41 +0300
committerMataes <mataes2007@gmail.com>2020-04-07 22:34:41 +0300
commit559cc9efdc9fbc5d3da5edaaf24924e0cc57a20d (patch)
treece176c37bd7816ddb976f5b73df4b20b9eca6f67 /plugins/NewStory/src/templates.cpp
parentfd567ad2c518d0c0337f8da6e9bae37c17e06ad6 (diff)
newstory: crash fix
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r--plugins/NewStory/src/templates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index fc9fa15e0d..e7cdfb8718 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -102,7 +102,7 @@ int TplMeasureVars(TemplateVars *vars, wchar_t *str)
}
// Loading variables
-void vfGlobal(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item)
+void vfGlobal(int, TemplateVars *vars, MCONTACT hContact, HistoryArray::ItemData *)
{
// %%: simply % character
vars->SetVar('%', L"%", false);
@@ -111,7 +111,7 @@ void vfGlobal(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item)
vars->SetVar('n', L"\x0d\x0a", false);
// %S: my nick (not for messages)
- char* proto = Proto_GetBaseAccountName(item->hContact);
+ char* proto = Proto_GetBaseAccountName(hContact);
ptrW nick(Contact_GetInfo(CNF_DISPLAY, 0, proto));
vars->SetVar('S', nick, false);
}