Return old fakeonline module as modules_online

It was accidentally dropped in 0.207 because of the confusing name,
it looked too much like antiidle module.

Instead, this module tells broken clients like Colloquy that *status and
*module are "online". Otherwise those clients require user to always
prepend messages to *module with "/msg *module", even if the window of
*module's query is active.

Also fix the module to support network modules
This commit is contained in:
Alexey Sokolov
2013-09-01 22:08:21 +04:00
parent d5e03cb736
commit 894e0a2f18
3 changed files with 125 additions and 0 deletions

View File

@@ -400,6 +400,12 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
sModName = "awaystore";
}
// XXX Legacy crap, added in 1.1; fakeonline module was dropped in 1.0 and returned in 1.1
if (sModName == "fakeonline") {
CUtils::PrintMessage("NOTICE: [fakeonline] was renamed, loading [modules_online] instead");
sModName = "modules_online";
}
CUtils::PrintAction("Loading user module [" + sModName + "]");
CString sModRet;
CString sArgs = sValue.Token(1, true);