packages/net/znc/patches/104-disable-empty-modules-check.patch
Jonas Gorski 6fccd8801e znc: allow running without modules
Now that we don't ship any modules by default, znc might be started
without any modules. Unfortunately znc refuses to start without any
modules, so patch out the appropriate check.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-12-03 17:52:28 +01:00

15 lines
501 B
Diff

--- a/src/main.cpp
+++ b/src/main.cpp
@@ -296,10 +296,12 @@ int main(int argc, char** argv) {
CUtils::PrintStatus(false, "");
CUtils::PrintError("No modules found. Perhaps you didn't install ZNC properly?");
CUtils::PrintError("Read http://wiki.znc.in/Installation for instructions.");
+#if 0
if (!CUtils::GetBoolInput("Do you really want to run ZNC without any modules?", false)) {
CZNC::DestroyInstance();
return 1;
}
+#endif
}
CUtils::PrintStatus(true, "");
}