From 90c2f2a24e911c832e11fcc6443afd24efdd4cc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jul 2013 11:05:10 +0000 Subject: - fix for name conflict in proto helpers; - switch to constants defined in m_nudge.h git-svn-id: http://svn.miranda-ng.org/main/trunk@5504 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Nudge/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Nudge') diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index 144a585c07..32cde9fd00 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -69,7 +69,7 @@ INT_PTR NudgeSend(WPARAM wParam,LPARAM lParam) else if(DefaultNudge.showStatus) Nudge_SentStatus(DefaultNudge, (HANDLE) wParam); - CallProtoService(protoName,"/SendNudge",wParam,lParam); + CallProtoService(protoName, PS_SEND_NUDGE, wParam, lParam); return 0; } @@ -272,10 +272,10 @@ static int TabsrmmButtonInit(WPARAM wParam, LPARAM lParam) void HideNudgeButton(HANDLE hContact) { char *szProto = GetContactProto(hContact); - if ( !ProtoServiceExists(szProto, "/SendNudge")) { + if ( !ProtoServiceExists(szProto, PS_SEND_NUDGE)) { BBButton bbd = { sizeof(bbd) }; bbd.bbbFlags = BBSF_HIDDEN | BBSF_DISABLED; - bbd.pszModuleName="Nudge"; + bbd.pszModuleName = "Nudge"; bbd.dwButtonID = 6000; CallService(MS_BB_SETBUTTONSTATE, (WPARAM)hContact, (LPARAM)&bbd); } -- cgit v1.2.3