summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_randquote.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp
index be4984132..887045a12 100644
--- a/src/modules/m_randquote.cpp
+++ b/src/modules/m_randquote.cpp
@@ -27,15 +27,17 @@ 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);
+ if (q_file == "") {
+ printf("m_randquote: Quotefile not specified.. Please check your config.");
+ exit(0);
+ }
+
+
quotes = new FileReader(q_file);
}