summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-21 14:15:26 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-21 14:15:26 +0000
commit7f657fce5090d089d0600d815a6db93050562f12 (patch)
tree8d77f4c492afc3937cea5d8f4da2326b9443e5af /plugins/ConnectionNotify
parent574b4a348ffce55a6288fb9eab080f403ac01d86 (diff)
ConnectionNotify:
- attempt to fix filtering, which got broken in r12455 git-svn-id: http://svn.miranda-ng.org/main/trunk@12470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ConnectionNotify')
-rw-r--r--plugins/ConnectionNotify/src/filter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/ConnectionNotify/src/filter.cpp b/plugins/ConnectionNotify/src/filter.cpp
index 0c8e53d1aa..c77ab89156 100644
--- a/plugins/ConnectionNotify/src/filter.cpp
+++ b/plugins/ConnectionNotify/src/filter.cpp
@@ -142,13 +142,11 @@ static INT_PTR CALLBACK ConnectionFilterEditProc(HWND hWnd, UINT message, WPARAM
BOOL checkFilter(struct CONNECTION *head,struct CONNECTION *conn)
{
- struct CONNECTION *cur=head;
- while(cur!=NULL)
- {
- if (wildcmpt(cur->PName,conn->PName)&&wildcmpt(cur->strIntIp,conn->strIntIp)&&wildcmpt(cur->strExtIp,conn->strExtIp)&&(cur->intIntPort==-1||cur->intIntPort==conn->intIntPort)&&(cur->intExtPort==-1||cur->intExtPort==conn->intExtPort))
+ for(struct CONNECTION *cur=head; cur!=NULL; cur=cur->next)
+ if (wildcmpt(conn->PName,cur->PName)&&wildcmpt(conn->strIntIp,cur->strIntIp)&&wildcmpt(conn->strExtIp,cur->strExtIp)
+ &&(cur->intIntPort==-1||cur->intIntPort==conn->intIntPort)&&(cur->intExtPort==-1||cur->intExtPort==conn->intExtPort))
return cur->Pid;
- cur=cur->next;
- }
+
return settingDefaultAction;
}