Permalink
Browse files

Fix renaming away to awaystore for user modules.

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.
  • Loading branch information...
1 parent 3e2152c commit c216c946968c236cb0e1f2aaee76636579dacc7b @DarthGandalf DarthGandalf committed Dec 20, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/User.cpp
View
@@ -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;

0 comments on commit c216c94

Please sign in to comment.