summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-07-27 21:00:07 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-07-27 21:00:07 +0000
commit7da209d2157cd8a32f015c93e5b835607163a53b (patch)
tree57dc38296c3db46f12baf02f0cdebb8211db779e
parent997cfb7edf2f80f95a4476920b1e97bb1bc5280d (diff)
Possible Bugfix.. stop the IRCd from launching if the quotes file aint
specified :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@179 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_randquote.cpp5
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);