From dcf105a517fe39ec565725357c7c071df2e050e4 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 26 Aug 2012 10:15:31 +0700 Subject: [PATCH] Fix modperl's list of available modules. Commit 8bb7ea5370046566f05a73d337ab3ef390435190 broke it. --- modules/modperl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/modperl.cpp b/modules/modperl.cpp index acef7725..c4e49300 100644 --- a/modules/modperl.cpp +++ b/modules/modperl.cpp @@ -208,7 +208,7 @@ public: PUSH_STR(sName); PUSH_PTR(CModInfo*, &ModInfo); PCALL("ZNC::Core::ModInfoByPath"); - if (!SvTRUE(ERRSV) && ret == 2) { + if (!SvTRUE(ERRSV)) { ssMods.insert(ModInfo); } PEND;