summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 08:39:46 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 08:39:46 +0000
commitfaecbbfe2d09b83e167c712dcd5ac52282228e09 (patch)
tree7023b1d6fb43dc8610574b2581b087f98f1dc305 /src
parent3e7adbfe4c337eb19321cd565a13b18e6bb9f0ca (diff)
Stylistic changes, removal of odd fake pointer thing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2032 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_randquote.cpp8
1 files changed, 5 insertions, 3 deletions
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);
}
};