Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c216c946968c236cb0e1f2aaee76636579dacc7b 1 parent 3e2152c
@DarthGandalf DarthGandalf authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/User.cpp
View
7 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;
Please sign in to comment.
Something went wrong with that request. Please try again.