summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/filterplugin.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-12 20:44:55 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-12 20:44:55 +0000
commit82016434fff2eb8ed8288c0c45bc76a67574860d (patch)
treef0771b2391899c61960c27af13d5e046f0d087d2 /plugins/YAMN/src/filterplugin.cpp
parentc989c00ce9e0a8422e7efb3c21350ca3f5276d86 (diff)
- fix for chinese in popups;
- own md5 module removed; - version bump; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@3585 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/src/filterplugin.cpp')
-rw-r--r--plugins/YAMN/src/filterplugin.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/YAMN/src/filterplugin.cpp b/plugins/YAMN/src/filterplugin.cpp
index 8f61003293..b1ad1f0abf 100644
--- a/plugins/YAMN/src/filterplugin.cpp
+++ b/plugins/YAMN/src/filterplugin.cpp
@@ -50,7 +50,7 @@ INT_PTR RegisterFilterPluginSvc(WPARAM wParam,LPARAM lParam)
PYAMN_FILTERREGISTRATION Registration=(PYAMN_FILTERREGISTRATION)wParam;
HYAMNFILTERPLUGIN Plugin;
- if (lParam!=YAMN_FILTERREGISTRATIONVERSION)
+ if (lParam != YAMN_FILTERREGISTRATIONVERSION)
return 0;
if ((Registration->Name==NULL) || (Registration->Ver==NULL))
return NULL;
@@ -78,8 +78,8 @@ INT_PTR UnregisterFilterPlugin(HYAMNFILTERPLUGIN Plugin)
}
else
{
- for (Parser=FirstFilterPlugin;(Parser->Next!=NULL) && (Plugin!=Parser->Next->Plugin);Parser=Parser->Next);
- if (Parser->Next!=NULL)
+ for (Parser=FirstFilterPlugin;(Parser->Next != NULL) && (Plugin != Parser->Next->Plugin);Parser=Parser->Next);
+ if (Parser->Next != NULL)
{
Found=Parser->Next;
Parser->Next=Parser->Next->Next;
@@ -87,9 +87,9 @@ INT_PTR UnregisterFilterPlugin(HYAMNFILTERPLUGIN Plugin)
else
Found=NULL;
}
- if (Found!=NULL)
+ if (Found != NULL)
{
- if (Plugin->FilterFcn->UnLoadFcn!=NULL)
+ if (Plugin->FilterFcn->UnLoadFcn != NULL)
Plugin->FilterFcn->UnLoadFcn((void *)0);
delete Found->Plugin;
@@ -117,7 +117,7 @@ INT_PTR UnregisterFilterPlugins()
{
EnterCriticalSection(&PluginRegCS);
//We remove protocols from the protocol list
- while(FirstFilterPlugin!=NULL)
+ while(FirstFilterPlugin != NULL)
UnregisterFilterPlugin(FirstFilterPlugin->Plugin);
LeaveCriticalSection(&PluginRegCS);
return 1;
@@ -127,7 +127,7 @@ int WINAPI SetFilterPluginFcnImportFcn(HYAMNFILTERPLUGIN Plugin,DWORD Importance
{
PYAMN_FILTERPLUGINQUEUE Parser,Previous;
- if (YAMNFilterFcnVer!=YAMN_FILTERIMPORTFCNVERSION)
+ if (YAMNFilterFcnVer != YAMN_FILTERIMPORTFCNVERSION)
return 0;
if (YAMNFilterFcn==NULL)
return 0;
@@ -140,7 +140,7 @@ int WINAPI SetFilterPluginFcnImportFcn(HYAMNFILTERPLUGIN Plugin,DWORD Importance
EnterCriticalSection(&PluginRegCS);
//We add protocol to the protocol list
- for (Previous=NULL,Parser=FirstFilterPlugin;Parser!=NULL && Parser->Next!=NULL && Parser->Plugin->Importance<=Importance;Previous=Parser,Parser=Parser->Next);
+ for (Previous=NULL,Parser=FirstFilterPlugin;Parser != NULL && Parser->Next != NULL && Parser->Plugin->Importance<=Importance;Previous=Parser,Parser=Parser->Next);
if (Previous==NULL) //insert to the beginnig of queue
{
FirstFilterPlugin=new YAMN_FILTERPLUGINQUEUE;
@@ -173,9 +173,9 @@ INT_PTR FilterMailSvc(WPARAM wParam,LPARAM lParam)
#ifdef DEBUG_SYNCHRO
DebugLog(SynchroFile,"FilterMail:ActualAccountMsgsSO-write enter\n");
#endif
- for (ActualPlugin=FirstFilterPlugin;ActualPlugin!=NULL;ActualPlugin=ActualPlugin->Next)
+ for (ActualPlugin=FirstFilterPlugin;ActualPlugin != NULL;ActualPlugin=ActualPlugin->Next)
{
- if (ActualPlugin->Plugin->FilterFcn->FilterMailFcnPtr!=NULL)
+ if (ActualPlugin->Plugin->FilterFcn->FilterMailFcnPtr != NULL)
{
#ifdef DEBUG_SYNCHRO
DebugLog(SynchroFile,"\tFiltering Mail, running plugin %0x to filter mail\n",ActualPlugin->Plugin);