summaryrefslogtreecommitdiff
path: root/src/modules/m_randquote.cpp
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-07-27 21:34:30 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-07-27 21:34:30 +0000
commitb784e24b7fc73a53bf7c824564fc2bf24106440f (patch)
treebeda5b7fa47173e74828bb46afe40f69c0cd1871 /src/modules/m_randquote.cpp
parentb98ff839df33058544bc00f68088cb351c8dd918 (diff)
Fix bug i put in, IRCd Should bail when quotefile aint specified.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@181 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_randquote.cpp')
-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);
}