mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +02:00
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:
7
znc.cpp
7
znc.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user