diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2016-12-03 17:48:08 +0100 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2016-12-03 17:52:28 +0100 |
commit | 6fccd8801eacc7cc59693cfa8c8076642893321e (patch) | |
tree | d8888cee155c593f7a334e5aedc2c184d4b14fdd /net/znc/patches | |
parent | c5d465a53c0f0fece0515991a79fdd4664065ce4 (diff) |
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>
Diffstat (limited to 'net/znc/patches')
-rw-r--r-- | net/znc/patches/104-disable-empty-modules-check.patch | 15 | ||||
-rw-r--r-- | net/znc/patches/110-add-playback-module.patch | 4 |
2 files changed, 16 insertions, 3 deletions
diff --git a/net/znc/patches/104-disable-empty-modules-check.patch b/net/znc/patches/104-disable-empty-modules-check.patch new file mode 100644 index 000000000..22b5c38f7 --- /dev/null +++ b/net/znc/patches/104-disable-empty-modules-check.patch @@ -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, ""); + } diff --git a/net/znc/patches/110-add-playback-module.patch b/net/znc/patches/110-add-playback-module.patch index 4da94cbf1..41a4f36c7 100644 --- a/net/znc/patches/110-add-playback-module.patch +++ b/net/znc/patches/110-add-playback-module.patch @@ -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 |