summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SeenPlugin/src/main.cpp')
-rw-r--r--plugins/SeenPlugin/src/main.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/SeenPlugin/src/main.cpp b/plugins/SeenPlugin/src/main.cpp
index 310b3e9148..405804dc95 100644
--- a/plugins/SeenPlugin/src/main.cpp
+++ b/plugins/SeenPlugin/src/main.cpp
@@ -29,17 +29,17 @@ HANDLE ehdb = NULL, ehproto = NULL, ehmissed = NULL, ehuserinfo = NULL, ehmissed
int hLangpack;
-PLUGININFOEX pluginInfo={
- sizeof(PLUGININFOEX),
- "Last seen",
- PLUGIN_MAKE_VERSION(5,0,4,7),
- "Log when a user was last seen online and which users were online while you were away.",
- "Heiko Schillinger, YB",
- "y_b@saaplugin.no-ip.info",
- "© 2001-2002 Heiko Schillinger, 2003 modified by Bruno Rino, 2005-7 Modified by YB",
- "http://miranda-ng.org/",
- UNICODE_AWARE,
- { 0x2d506d46,0xc94e,0x4ef8,{0x85, 0x37, 0xf1, 0x12, 0x33, 0xa8, 0x03, 0x81}}/* 2d506d46-c94e-4ef8-8537-f11233a80381 */
+PLUGININFOEX pluginInfo = {
+ sizeof(PLUGININFOEX),
+ "Last seen",
+ PLUGIN_MAKE_VERSION(5,1,0,0),
+ "Log when a user was last seen online and which users were online while you were away.",
+ "Heiko Schillinger, YB",
+ "y_b@saaplugin.no-ip.info",
+ "© 2001-2002 Heiko Schillinger, 2003 modified by Bruno Rino, 2005-7 Modified by YB",
+ "http://miranda-ng.org/",
+ UNICODE_AWARE,
+ { 0x2d506d46,0xc94e,0x4ef8,{0x85, 0x37, 0xf1, 0x12, 0x33, 0xa8, 0x03, 0x81}}/* 2d506d46-c94e-4ef8-8537-f11233a80381 */
};
#define TRANSNUMBER 2
@@ -58,20 +58,20 @@ int MainInit(WPARAM wparam,LPARAM lparam)
contactQueue = (logthread_info **)malloc(contactQueueSize);
memset(&contactQueue[0], 0, contactQueueSize);
contactQueueSize = 16;
- includeIdle = (BOOL )DBGetContactSettingByte(NULL,S_MOD,"IdleSupport",1);
+ includeIdle = (BOOL )db_get_b(NULL,S_MOD,"IdleSupport",1);
hOptInit = HookEvent(ME_OPT_INITIALISE, OptionsInit);
- if(DBGetContactSettingByte(NULL,S_MOD,"MenuItem",1)) {
+ if ( db_get_b(NULL,S_MOD,"MenuItem",1)) {
InitMenuitem();
}
- if(DBGetContactSettingByte(NULL,S_MOD,"UserinfoTab",1))
+ if ( db_get_b(NULL,S_MOD,"UserinfoTab",1))
ehuserinfo = HookEvent(ME_USERINFO_INITIALISE,UserinfoInit);
- if(DBGetContactSettingByte(NULL,S_MOD,"FileOutput",0))
+ if ( db_get_b(NULL,S_MOD,"FileOutput",0))
InitFileOutput();
- if(DBGetContactSettingByte(NULL,S_MOD,"MissedOnes",0))
+ if ( db_get_b(NULL,S_MOD,"MissedOnes",0))
ehmissed_proto=HookEvent(ME_PROTO_ACK,ModeChange_mo);
ehdb = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, UpdateValues);
@@ -85,7 +85,7 @@ int MainInit(WPARAM wparam,LPARAM lparam)
// known modules list
if (ServiceExists("DBEditorpp/RegisterSingleModule"))
CallService("DBEditorpp/RegisterSingleModule", (WPARAM)S_MOD, 0);
- DBWriteContactSettingString(NULL,"Uninstall",Translate("Last seen"),S_MOD);
+ db_set_s(NULL,"Uninstall",Translate("Last seen"),S_MOD);
if ( ServiceExists(MS_TIPPER_ADDTRANSLATION)) {
@@ -105,9 +105,9 @@ extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirand
extern "C" __declspec(dllexport) int Unload(void)
{
UnhookEvent(ehdb);
- if(ehmissed) UnhookEvent(ehmissed);
+ if (ehmissed) UnhookEvent(ehmissed);
UnhookEvent(ehproto);
- if(ehmissed_proto) UnhookEvent(ehmissed_proto);
+ if (ehmissed_proto) UnhookEvent(ehmissed_proto);
UnhookEvent(hOptInit);
UnhookEvent(hMainInit);
if (ehuserinfo) UnhookEvent(ehuserinfo);