mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- 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, "");
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
Index: znc-1.6.3/modules/playback.cpp
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ znc-1.6.3/modules/playback.cpp
|
||||
+++ b/modules/playback.cpp
|
||||
@@ -0,0 +1,288 @@
|
||||
+/*
|
||||
+ * Copyright (C) 2015 J-P Nurmi
|
||||
|
||||
Reference in New Issue
Block a user