Skip to content

Commit

Permalink
Automatically load autoaway if away is requested
Browse files Browse the repository at this point in the history
This module was renamed in f604709.

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
psychon committed Dec 29, 2011
1 parent 6443563 commit cdc27e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/IRCNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ bool CIRCNetwork::ParseConfig(CConfig *pConfig, CString& sError, bool bUpgrade)
CString sValue = *vit;
CString sModName = sValue.Token(0);

// XXX Legacy crap, added in ZNC 0.203
if (sModName == "away") {
CUtils::PrintMessage("NOTICE: [away] was renamed, "
"loading [autoaway] instead");
sModName = "autoaway";
}

CUtils::PrintAction("Loading Module [" + sModName + "]");
CString sModRet;
CString sArgs = sValue.Token(1, true);
Expand Down

0 comments on commit cdc27e1

Please sign in to comment.