mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Support wiki pages names for perl modules.
This commit is contained in:
@@ -147,11 +147,12 @@ public:
|
||||
break;
|
||||
case Perl_Loaded:
|
||||
result = HALT;
|
||||
if (3 == ret) {
|
||||
if (4 == ret) {
|
||||
ModInfo.SetGlobal(false);
|
||||
ModInfo.SetDescription(PString(ST(2)));
|
||||
ModInfo.SetName(sModule);
|
||||
ModInfo.SetPath(PString(ST(1)));
|
||||
ModInfo.SetWikiPage(PString(ST(3)));
|
||||
bSuccess = true;
|
||||
} else {
|
||||
bSuccess = false;
|
||||
@@ -201,11 +202,12 @@ public:
|
||||
PUSH_STR(sPath);
|
||||
PUSH_STR(sName);
|
||||
PCALL("ZNC::Core::ModInfoByPath");
|
||||
if (!SvTRUE(ERRSV) && ret == 1) {
|
||||
if (!SvTRUE(ERRSV) && ret == 2) {
|
||||
ModInfo.SetGlobal(false);
|
||||
ModInfo.SetDescription(PString(ST(0)));
|
||||
ModInfo.SetName(sName);
|
||||
ModInfo.SetPath(sPath);
|
||||
ModInfo.SetWikiPage(PString(ST(1)));
|
||||
ssMods.insert(ModInfo);
|
||||
}
|
||||
PEND;
|
||||
|
||||
Reference in New Issue
Block a user