diff options
| author | 2003-07-27 21:00:07 +0000 | |
|---|---|---|
| committer | 2003-07-27 21:00:07 +0000 | |
| commit | 7da209d2157cd8a32f015c93e5b835607163a53b (patch) | |
| tree | 57dc38296c3db46f12baf02f0cdebb8211db779e /src/modules/m_randquote.cpp | |
| parent | Removed the need for Perl (Again, 2ce in one night) (diff) | |
| download | inspircd++-7da209d2157cd8a32f015c93e5b835607163a53b.tar.gz inspircd++-7da209d2157cd8a32f015c93e5b835607163a53b.tar.bz2 inspircd++-7da209d2157cd8a32f015c93e5b835607163a53b.zip | |
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
Diffstat (limited to 'src/modules/m_randquote.cpp')
| -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); |
