diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/Nudge | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge')
-rw-r--r-- | plugins/Nudge/main.cpp | 18 | ||||
-rw-r--r-- | plugins/Nudge/nudge.cpp | 4 | ||||
-rw-r--r-- | plugins/Nudge/options.cpp | 2 | ||||
-rw-r--r-- | plugins/Nudge/shake.cpp | 6 |
4 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Nudge/main.cpp b/plugins/Nudge/main.cpp index 470ac43765..5af3d90205 100644 --- a/plugins/Nudge/main.cpp +++ b/plugins/Nudge/main.cpp @@ -54,7 +54,7 @@ INT_PTR NudgeShowMenu(WPARAM wParam,LPARAM lParam) for(NudgeElementList *n = NudgeList;n != NULL; n = n->next)
{
- if(!strcmp((char *) wParam,n->item.ProtocolName))
+ if (!strcmp((char *) wParam,n->item.ProtocolName))
{
return n->item.ShowContactMenu(lParam != 0);
}
@@ -77,7 +77,7 @@ INT_PTR NudgeSend(WPARAM wParam,LPARAM lParam) {
for(NudgeElementList *n = NudgeList;n != NULL; n = n->next)
{
- if(!strcmp(protoName,n->item.ProtocolName))
+ if (!strcmp(protoName,n->item.ProtocolName))
{
Nudge_ShowPopup(n->item, (HANDLE) wParam, msg);
}
@@ -97,7 +97,7 @@ INT_PTR NudgeSend(WPARAM wParam,LPARAM lParam) NudgeElementList *n;
for(n = NudgeList;n != NULL; n = n->next)
{
- if(!strcmp(protoName,n->item.ProtocolName))
+ if (!strcmp(protoName,n->item.ProtocolName))
{
//if(n->item.showPopup)
// Nudge_ShowPopup(n->item, (HANDLE) wParam, n->item.senText);
@@ -145,7 +145,7 @@ int NudgeRecieved(WPARAM wParam,LPARAM lParam) {
for(NudgeElementList *n = NudgeList;n != NULL; n = n->next)
{
- if(!strcmp(protoName,n->item.ProtocolName))
+ if (!strcmp(protoName,n->item.ProtocolName))
{
if(n->item.enabled)
@@ -155,7 +155,7 @@ int NudgeRecieved(WPARAM wParam,LPARAM lParam) DWORD Status = CallProtoService(protoName,PS_GETSTATUS,0,0);
- if( ((n->item.statusFlags & NUDGE_ACC_ST0) && (Status<=ID_STATUS_OFFLINE)) ||
+ if ( ((n->item.statusFlags & NUDGE_ACC_ST0) && (Status<=ID_STATUS_OFFLINE)) ||
((n->item.statusFlags & NUDGE_ACC_ST1) && (Status==ID_STATUS_ONLINE)) ||
((n->item.statusFlags & NUDGE_ACC_ST2) && (Status==ID_STATUS_AWAY)) ||
((n->item.statusFlags & NUDGE_ACC_ST3) && (Status==ID_STATUS_DND)) ||
@@ -202,7 +202,7 @@ int NudgeRecieved(WPARAM wParam,LPARAM lParam) if(DefaultNudge.useIgnoreSettings && CallService(MS_IGNORE_ISIGNORED,wParam,IGNOREEVENT_USERONLINE))
return 0;
DWORD Status = CallService(MS_CLIST_GETSTATUSMODE,0,0);
- if( ((DefaultNudge.statusFlags & NUDGE_ACC_ST0) && (Status<=ID_STATUS_OFFLINE)) ||
+ if ( ((DefaultNudge.statusFlags & NUDGE_ACC_ST0) && (Status<=ID_STATUS_OFFLINE)) ||
((DefaultNudge.statusFlags & NUDGE_ACC_ST1) && (Status==ID_STATUS_ONLINE)) ||
((DefaultNudge.statusFlags & NUDGE_ACC_ST2) && (Status==ID_STATUS_AWAY)) ||
((DefaultNudge.statusFlags & NUDGE_ACC_ST3) && (Status==ID_STATUS_DND)) ||
@@ -378,7 +378,7 @@ void LoadProtocols(void) void RegisterToTrigger(void)
{
- if( ServiceExists(MS_TRIGGER_REGISTERACTION))
+ if ( ServiceExists(MS_TRIGGER_REGISTERACTION))
{
ACTIONREGISTER ar;
ZeroMemory(&ar, sizeof(ar));
@@ -437,7 +437,7 @@ static int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam) {
CustomButtonClickData *cbcd=(CustomButtonClickData *)lParam;
- if(!strcmp(cbcd->pszModule,"Nudge"))
+ if (!strcmp(cbcd->pszModule,"Nudge"))
NudgeSend(wParam, 0);
return 0;
@@ -627,7 +627,7 @@ void LoadPopupClass() int Preview()
{
HANDLE hContact = (HANDLE) CallService(MS_DB_CONTACT_FINDFIRST,0,0);
- if( GlobalNudge.useByProtocol )
+ if ( GlobalNudge.useByProtocol )
{
for(NudgeElementList *n = NudgeList;n != NULL; n = n->next)
{
diff --git a/plugins/Nudge/nudge.cpp b/plugins/Nudge/nudge.cpp index 73f831d35f..0afa6edee0 100644 --- a/plugins/Nudge/nudge.cpp +++ b/plugins/Nudge/nudge.cpp @@ -95,7 +95,7 @@ void CNudgeElement::Load(void) mir_snprintf(SectionName,512,"%s-statusFlags", ProtocolName);
this->statusFlags = DBGetContactSettingDword(NULL, "Nudge", SectionName, 967);
mir_snprintf(SectionName,512,"%s-recText", ProtocolName);
- if(!DBGetContactSettingTString(NULL,"Nudge",SectionName,&dbv))
+ if (!DBGetContactSettingTString(NULL,"Nudge",SectionName,&dbv))
{
_tcsncpy(this->recText,dbv.ptszVal,TEXT_LEN);
if(_tcsclen(this->recText) < 1)
@@ -105,7 +105,7 @@ void CNudgeElement::Load(void) else
_tcsncpy(this->recText,TranslateT("You received a nudge"),TEXT_LEN);
mir_snprintf(SectionName,512,"%s-senText", ProtocolName);
- if(!DBGetContactSettingTString(NULL,"Nudge",SectionName,&dbv))
+ if (!DBGetContactSettingTString(NULL,"Nudge",SectionName,&dbv))
{
_tcsncpy(this->senText,dbv.ptszVal,TEXT_LEN);
if(_tcsclen(this->senText) < 1)
diff --git a/plugins/Nudge/options.cpp b/plugins/Nudge/options.cpp index 1416ba83b7..15bd1e224b 100644 --- a/plugins/Nudge/options.cpp +++ b/plugins/Nudge/options.cpp @@ -74,7 +74,7 @@ INT_PTR CALLBACK DlgProcShakeOpt(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam) break;
}
case WM_HSCROLL:
- if((HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CLIST) || (HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CHAT)
+ if ((HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CLIST) || (HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CHAT)
|| (HWND)lParam == GetDlgItem(hwnd, IDC_SSCALE_CLIST) || (HWND)lParam == GetDlgItem(hwnd, IDC_SSCALE_CHAT))
{
TCHAR szBuf[20];
diff --git a/plugins/Nudge/shake.cpp b/plugins/Nudge/shake.cpp index 16f58d9183..c39d79c57b 100644 --- a/plugins/Nudge/shake.cpp +++ b/plugins/Nudge/shake.cpp @@ -46,7 +46,7 @@ INT_PTR ShakeClist( WPARAM wParam, LPARAM lParam ) INT_PTR ShakeChat( WPARAM wParam, LPARAM lParam )
{
- if(((HANDLE) wParam) == NULL) return -1;
+ if (((HANDLE) wParam) == NULL) return -1;
DWORD tid;
//char srmmName[100];
@@ -142,7 +142,7 @@ int TriggerShakeChat( WPARAM wParam, LPARAM lParam ) int CShake::ShakeChat(HWND hWnd)
{
- if(!ShakingChat)
+ if (!ShakingChat)
{
ShakingChat = true;
RECT rect;
@@ -166,7 +166,7 @@ int CShake::ShakeChat(HWND hWnd) int CShake::ShakeClist(HWND hWnd)
{
- if(!Shaking)
+ if (!Shaking)
{
Shaking = true;
RECT rect;
|