summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-01 19:08:21 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-01 19:08:21 +0000
commit3ae5210daedc65958799d38dd9eb05a8b5beee6c (patch)
tree1a5b24ab017bdfa07315b82177abdd81ea124a13
parentade5e948783377dfb7820f8ba8957fe9ae0e3147 (diff)
Fixed the random seeder thingie!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@939 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_randquote.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp
index 01a6e3270..d3dfc5a45 100644
--- a/src/modules/m_randquote.cpp
+++ b/src/modules/m_randquote.cpp
@@ -39,7 +39,6 @@ void handle_randquote(char** parameters, int pcntl, userrec *user)
char buf[MAXBUF];
fsize = quotes->FileSize();
- srand(time(NULL));
str = quotes->GetLine(rand() % fsize);
sprintf(buf,"NOTICE %s :%s%s%s",user->nick,prefix.c_str(),str.c_str(),suffix.c_str());
@@ -60,6 +59,8 @@ class ModuleRandQuote : public Module
{
Srv = new Server;
conf = new ConfigReader;
+ // Sort the Randomizer thingie..
+ srand(time(NULL));
q_file = conf->ReadValue("randquote","file",0);