From c216c946968c236cb0e1f2aaee76636579dacc7b Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 20 Dec 2012 21:41:24 +0700 Subject: [PATCH] Fix renaming away to awaystore for user modules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When it was renamed, it already was a network module, and IRCNetwork got a check for away module. But users of 0.206 and earlier have this module loaded as user module, they even can't have networks at all, so the renaming didn't go smooth for them :( It's broken in 1.0 already anyway, but users who skip 1.0 and upgrade from older version to 1.2+ directly will be happier. Thanks to Ammler (Marcel Gmür) for reporting it. --- src/User.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/User.cpp b/src/User.cpp index 4e04cda2..dc8deed3 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -380,6 +380,13 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) { CUtils::PrintMessage("NOTICE: [admin] module was renamed, loading [controlpanel] instead"); sModName = "controlpanel"; } + + // XXX Legacy crap, should have been added ZNC 0.207, but added only in 1.1 :( + if (sModName == "away") { + CUtils::PrintMessage("NOTICE: [away] was renamed, " + "loading [awaystore] instead"); + sModName = "awaystore"; + } CUtils::PrintAction("Loading user module [" + sModName + "]"); CString sModRet;