summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-14 20:48:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-14 20:48:45 +0300
commit9dcff172cecdf4b37bb2d719de3c2d588acaa71b (patch)
tree7a34b0b7beccc891b7c831e066b40f87c1f45c67
parentc903fe01f85d8bbd7b5fe670d2314a6c92bfe688 (diff)
code cleaning
-rw-r--r--plugins/NewStory/src/history_array.cpp2
-rw-r--r--plugins/NewStory/src/templates.cpp8
2 files changed, 1 insertions, 9 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index cbffbb1f1d..20a9b903ae 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -248,7 +248,7 @@ bool ItemData::fetch(void)
{
// if this event is virtual (for example, in group chats), don't try to laod it
if (!hEvent)
- return true;
+ return false;
if (!dbe) {
if (!dbe.fetch(hEvent))
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 8cc5eb3aff..57d5e48ea4 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -318,11 +318,6 @@ void vfFile(TemplateVars *vars, MCONTACT, ItemData *item)
vars->SetVar('M', item->getWBuf(), false);
}
-void vfUrl(TemplateVars *vars, MCONTACT, ItemData *item)
-{
- vars->SetVar('M', item->getWBuf(), false);
-}
-
void vfSign(TemplateVars *vars, MCONTACT, ItemData *item)
{
vars->SetVar('M', item->getWBuf(), false);
@@ -428,9 +423,6 @@ TemplateInfo templates[TPL_COUNT] =
{ "tpl/copy/file", LPGENW("Clipboard"), -SKINICON_EVENT_FILE, LPGENW("Files"),
L"%N, %t:\x0d\x0a%M%n", 0, 0,
{ vfGlobal, vfContact, vfEvent, vfFile, 0 } },
- { "tpl/copy/url", LPGENW("Clipboard"), -SKINICON_EVENT_URL, LPGENW("URLs"),
- L"%N, %t:\x0d\x0a%M%n", 0, 0,
- { vfGlobal, vfContact, vfEvent, vfUrl, 0 } },
{ "tpl/copy/status", LPGENW("Clipboard"), IDI_SIGNIN, LPGENW("Status changes"),
L"%N, %t:\x0d\x0a%M%n", 0, 0,
{ vfGlobal, vfContact, vfEvent, vfSign, 0 } },