From: Kyle Fuller Date: Wed, 30 Sep 2015 17:13:08 +0000 (-0700) Subject: Issue an error when installation instructions we're not followed X-Git-Tag: 1.1.0~15 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8da5929e3a824158d28584f48b29f63cf434c7a1;p=znc-palaver.git Issue an error when installation instructions we're not followed --- diff --git a/palaver.cpp b/palaver.cpp index d5a1cdf..ebc8295 100644 --- a/palaver.cpp +++ b/palaver.cpp @@ -7,6 +7,10 @@ #define REQUIRESSL +#ifndef PALAVER_VERSION + #error "Please follow the installation instructions in the README." +#endif + #include #include @@ -20,10 +24,6 @@ #include #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."