diff options
author | Mataes <mataes2007@gmail.com> | 2020-04-04 15:30:13 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-04-04 15:30:38 +0300 |
commit | 5fc4e483a326e60c4410049c3e667edaa5650757 (patch) | |
tree | 4aa93a06999cf47fdd498c09c1af1adf2454931d /plugins/NewStory/src/templates.cpp | |
parent | 35f3a41206cc576853943620d7d9a7efe593fed5 (diff) |
newstory: added support of jabber subscription
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 414d5e487d..e76d679fea 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -269,6 +269,12 @@ void vfAdded(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item) vars->SetVar('M', item->getTBuf(), false); } +void vfPresence(int, TemplateVars* vars, MCONTACT, HistoryArray::ItemData* item) +{ + // %M: the message string itself + TplSetVar(vars, 'M', item->getTBuf(), false); +} + void vfDeleted(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item) { // %M: the message string itself @@ -298,6 +304,9 @@ TemplateInfo templates[TPL_COUNT] = { "tpl/msglog/status", L"Message Log", ICO_SIGNIN, L"Status Changes", L"%I%i[b]%N, %t:[/b]%n%M", 0, 0, { vfGlobal, vfContact, vfEvent, vfSign, 0 } }, + { "tpl/msglog/presense", L"Message Log", ICO_UNKNOWN, L"'Presence Requests", + L"%I%i[b]%N, %t:[/b]%n%M", 0, 0, + { vfGlobal, vfContact, vfEvent, vfPresence, 0 } }, { "tpl/msglog/other", L"Message Log", ICO_UNKNOWN, L"Other Events", L"%I%i[b]%N, %t:[/b]%n%M", 0, 0, { vfGlobal, vfContact, vfEvent, vfOther, 0 } }, @@ -324,6 +333,9 @@ TemplateInfo templates[TPL_COUNT] = { "tpl/copy/status", L"Clipboard", ICO_SIGNIN, L"Status Changes", L"%N, %t:\x0d\x0a%M%n", 0, 0, { vfGlobal, vfContact, vfEvent, vfSign, 0 } }, + { "tpl/copy/presence", L"Clipboard", ICO_UNKNOWN, L"Presence Requests", + L"%N, %t:\x0d\x0a%M%n", 0, 0, + { vfGlobal, vfContact, vfEvent, vfPresence, 0 } }, { "tpl/copy/other", L"Clipboard", ICO_UNKNOWN, L"Other Events", L"%N, %t:\x0d\x0a%M%n", 0, 0, { vfGlobal, vfContact, vfEvent, vfOther, 0 } }, |