summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2020-04-04 15:53:00 +0300
committerMataes <mataes2007@gmail.com>2020-04-04 15:53:00 +0300
commit2fb222dfb7740081c6f457e9e564d5d1cd0a7824 (patch)
tree0b3f86cf3f997237ce21f3558aa4756ee86d5c23
parenta8690c2362debb011405e0051b050c3c7281e8a8 (diff)
Newstory: fixed nick showing for subscription
-rw-r--r--plugins/NewStory/src/history_array.cpp1
-rw-r--r--plugins/NewStory/src/templates.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index e7f6e9bddd..fa411b2178 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -38,6 +38,7 @@ bool HistoryArray::ItemData::load(EventLoadMode mode)
case EVENTTYPE_JABBER_PRESENCE:
wtext = DbEvent_GetTextW(&dbe, CP_ACP);
+ wtext_del = false;
break;
case EVENTTYPE_AUTHREQUEST:
diff --git a/plugins/NewStory/src/templates.h b/plugins/NewStory/src/templates.h
index c8e23f2225..222ebd22f6 100644
--- a/plugins/NewStory/src/templates.h
+++ b/plugins/NewStory/src/templates.h
@@ -28,7 +28,7 @@ typedef void(*VarFunc)(int mode, TemplateVars* vars, MCONTACT hContact, HistoryA
struct TemplateInfo
{
- enum { VF_COUNT = 5 };
+ enum { VF_COUNT = 6 };
char* setting;
wchar_t* group;
@@ -47,12 +47,12 @@ enum
TPL_MESSAGE,
TPL_FILE,
TPL_SIGN,
+ TPL_PRESENCE,
TPL_OTHER,
TPL_AUTH,
TPL_ADDED,
TPL_DELETED,
- TPL_PRESENCE,
TPL_COPY_MESSAGE,
TPL_COPY_FILE,