diff options
-rw-r--r-- | src/modules/m_randquote.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 5be40bc6c..be4984132 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -27,6 +27,11 @@ class ModuleRandQuote : public Module Srv = new Server; conf = new ConfigReader; + if (conf->ReadValue("randquote","file",0) == '') { + log(DEBUG,"m_randquote: startup: File Not Specified!, bailing!"); + return (ERROR); + } + q_file = conf->ReadValue("randquote","file",0); prefix = conf->ReadValue("randquote","prefix",0); suffix = conf->ReadValue("randquote","suffix",0); |