Issue an error when installation instructions we're not followed
authorKyle Fuller <redacted>
Wed, 30 Sep 2015 17:13:08 +0000 (10:13 -0700)
committerKyle Fuller <redacted>
Wed, 30 Sep 2015 17:13:29 +0000 (10:13 -0700)
palaver.cpp

index d5a1cdf2e7e2ca36b0a1161f3eb5a4e5c4b41a50..ebc829588417cee96960ab595cd1f0d113020973 100644 (file)
@@ -7,6 +7,10 @@
 
 #define REQUIRESSL
 
+#ifndef PALAVER_VERSION
+       #error "Please follow the installation instructions in the README."
+#endif
+
 
 #include <znc/Modules.h>
 #include <znc/User.h>
 #include <regex>
 #endif
 
-#ifndef PALAVER_VERSION
-       #define PALAVER_VERSION "unknown"
-#endif
-
 
 #if defined VERSION_MAJOR && defined VERSION_MINOR && VERSION_MAJOR >= 1 && VERSION_MINOR < 6
        #error "Palaver ZNC Modules requires ZNC 1.6 or newer."
git clone https://git.99rst.org/PROJECT