From faecbbfe2d09b83e167c712dcd5ac52282228e09 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 30 Nov 2005 08:39:46 +0000 Subject: Stylistic changes, removal of odd fake pointer thing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2032 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_randquote.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 67f4bcb95..22c3fe32f 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -68,7 +68,8 @@ class ModuleRandQuote : public Module prefix = conf->ReadValue("randquote","prefix",0); suffix = conf->ReadValue("randquote","suffix",0); - if (q_file == "") { + if (q_file == "") + { log(DEFAULT,"m_randquote: Quotefile not specified - Please check your config."); return; } @@ -99,8 +100,9 @@ class ModuleRandQuote : public Module { // Make a fake pointer to be passed to handle_randquote() // Dont try this at home kiddies :D - char *rar = "RAR"; - handle_randquote(&rar, 0, user); + /* Or do things a slightly nicer way, and pass NULL */ + //char *rar = "RAR"; + handle_randquote(NULL, 0, user); } }; -- cgit v1.2.3