summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/src/tipper.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-13 20:46:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-13 20:46:32 +0300
commite8173bb66d10c1716fc659e08a77528e71375ae3 (patch)
tree92dd8f43f1f2708034a9b6d1ddfc656b4f497528 /plugins/TipperYM/src/tipper.cpp
parent54e2d0c216f73e368eeb96dc43f8de233f1a6027 (diff)
Tipper -> g_plugin (+ some code cleaning)
Diffstat (limited to 'plugins/TipperYM/src/tipper.cpp')
-rw-r--r--plugins/TipperYM/src/tipper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp
index 0cae9b3abe..60b9b439a5 100644
--- a/plugins/TipperYM/src/tipper.cpp
+++ b/plugins/TipperYM/src/tipper.cpp
@@ -50,7 +50,8 @@ PLUGININFOEX pluginInfoEx =
CMPlugin::CMPlugin() :
PLUGIN<CMPlugin>(MODULENAME, pluginInfoEx)
-{}
+{
+}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -101,7 +102,7 @@ static int EventDeleted(WPARAM wParam, LPARAM lParam)
DBEVENTINFO dbei = {};
if (!db_event_get(lParam, &dbei))
if (dbei.eventType == EVENTTYPE_MESSAGE)
- db_unset(wParam, MODULENAME, "LastCountTS");
+ g_plugin.delSetting(wParam, "LastCountTS");
return 0;
}
@@ -225,7 +226,7 @@ static void InitFonts()
static int ModulesLoaded(WPARAM, LPARAM)
{
InitFonts();
-
+
hAvChangeEvent = HookEvent(ME_AV_AVATARCHANGED, AvatarChanged);
hShowTipEvent = HookEvent(ME_CLC_SHOWINFOTIP, ShowTipHook);
hHideTipEvent = HookEvent(ME_CLC_HIDEINFOTIP, HideTipHook);