diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-25 11:54:43 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-25 11:54:43 +0000 |
commit | d6963825060493cd956b9ab758169438328c5f12 (patch) | |
tree | 895730fe584d6700bd351a067f6aa99ea36846ae /plugins/BuddyPounce/src/main.cpp | |
parent | 07209607fbe1018503f1304bedff37daea7e9e82 (diff) |
BuddyPounce - common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BuddyPounce/src/main.cpp')
-rw-r--r-- | plugins/BuddyPounce/src/main.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/BuddyPounce/src/main.cpp b/plugins/BuddyPounce/src/main.cpp index 7a58be7869..843ee1d2ca 100644 --- a/plugins/BuddyPounce/src/main.cpp +++ b/plugins/BuddyPounce/src/main.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
int hLangpack;
HINSTANCE hInst;
@@ -22,7 +22,7 @@ PLUGININFOEX pluginInfo={ // WINAPI DllMain
//========================
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
@@ -32,7 +32,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) //========================
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -41,7 +41,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda // MainInit
//===================
-int MainInit(WPARAM wParam, LPARAM lParam)
+int MainInit(WPARAM, LPARAM)
{
CLISTMENUITEM mi = { sizeof(mi) };
mi.position=10;
@@ -55,7 +55,7 @@ int MainInit(WPARAM wParam, LPARAM lParam) return 0;
}
-int MsgAck(WPARAM wParam, LPARAM lParam)
+int MsgAck(WPARAM, LPARAM lParam)
{
ACKDATA *ack=(ACKDATA*)lParam;
@@ -93,7 +93,7 @@ int MsgAck(WPARAM wParam, LPARAM lParam) return 0;
}
-int BuddyPounceOptInit(WPARAM wParam, LPARAM lParam)
+int BuddyPounceOptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
@@ -188,7 +188,7 @@ int UserOnlineSettingChanged(WPARAM hContact, LPARAM lParam) return 0;
}
-INT_PTR BuddyPounceMenuCommand(WPARAM hContact, LPARAM lParam)
+INT_PTR BuddyPounceMenuCommand(WPARAM hContact, LPARAM)
{
if (db_get_b(NULL, modname, "UseAdvanced", 0) || db_get_b(hContact, modname, "UseAdvanced", 0))
CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_POUNCE),0,BuddyPounceDlgProc, hContact);
@@ -201,7 +201,6 @@ INT_PTR AddSimpleMessage(WPARAM wParam, LPARAM lParam) {
MCONTACT hContact = wParam;
TCHAR* message = (TCHAR*)lParam;
- time_t today = time(NULL);
db_set_ws(hContact, modname, "PounceMsg", message);
db_set_w(hContact, modname, "SendIfMyStatusIsFLAG", (WORD)db_get_w(NULL, modname, "SendIfMyStatusIsFLAG",1));
db_set_w(hContact, modname, "SendIfTheirStatusIsFLAG", (WORD)db_get_w(NULL, modname, "SendIfTheirStatusIsFLAG",1));
|