mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +02:00
Some minor stuff, again found via icc's "remarks"
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1436 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -807,7 +807,7 @@ bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CUser* p
|
||||
bool bLoaded;
|
||||
try {
|
||||
bLoaded = pModule->OnLoad(sArgs, sRetMsg);
|
||||
} catch (CModule::EModException e) {
|
||||
} catch (CModule::EModException) {
|
||||
bLoaded = false;
|
||||
sRetMsg = "Caught an exception";
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ struct array_size_helper {
|
||||
};
|
||||
|
||||
template<class T, std::size_t N>
|
||||
array_size_helper<N> array_size(T (&)[N]) {
|
||||
static array_size_helper<N> array_size(T (&)[N]) {
|
||||
return array_size_helper<N>();
|
||||
}
|
||||
|
||||
|
||||
@@ -72,4 +72,4 @@ private:
|
||||
TCacheMap<CString> m_Cache;
|
||||
};
|
||||
|
||||
GLOBALMODULEDEFS(CFailToBanMod, "Block IPs for some time after a failed login");
|
||||
GLOBALMODULEDEFS(CFailToBanMod, "Block IPs for some time after a failed login")
|
||||
|
||||
Reference in New Issue
Block a user