Add an alias for discon_kick

discon_kick is now called disconkick, so load that one instead when we see a
config line with "LoadModule = discon_kick".

Idea by BrianC.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1957 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-05-01 11:36:42 +00:00
parent 82129aa2b5
commit a836dcd778

View File

@@ -1427,6 +1427,13 @@ bool CZNC::DoRehash(CString& sError)
continue;
} else if (sName.Equals("LoadModule")) {
CString sModName = sValue.Token(0);
// XXX Legacy crap, added in znc 0.089
if (sModName == "discon_kick") {
CUtils::PrintMessage("NOTICE: [discon_kick] was renamed, loading [disconkick] instead");
sModName = "disconkick";
}
CUtils::PrintAction("Loading Module [" + sModName + "]");
CString sModRet;
CString sArgs = sValue.Token(1, true);