mirror of
https://github.com/znc/znc.git
synced 2026-07-06 01:41:12 +02:00
Remove some pointless if statements
This commit is contained in:
+1
-4
@@ -84,10 +84,7 @@ public:
|
||||
return false;
|
||||
if (!Nick.GetHostMask().AsLower().WildCmp(m_sHostMask.AsLower()))
|
||||
return false;
|
||||
if (!sText.AsLower().WildCmp(pUser->ExpandString(m_sPattern).AsLower()))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return (sText.AsLower().WildCmp(pUser->ExpandString(m_sPattern).AsLower()));
|
||||
}
|
||||
|
||||
bool operator ==(const CWatchEntry& WatchEntry) {
|
||||
|
||||
@@ -44,10 +44,7 @@ inline bool FOR_EACH_MODULE_CanContinue(FOR_EACH_MODULE_Type& state, CModules::i
|
||||
i = state.CMuser.begin();
|
||||
state.bOnCMuser = true;
|
||||
}
|
||||
if (state.bOnCMuser && i == state.CMuser.end()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !(state.bOnCMuser && i == state.CMuser.end());
|
||||
}
|
||||
|
||||
#define FOR_EACH_MODULE(I, pUser)\
|
||||
|
||||
Reference in New Issue
Block a user