summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_randquote.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp
index 197efcdb6..01a6e3270 100644
--- a/src/modules/m_randquote.cpp
+++ b/src/modules/m_randquote.cpp
@@ -34,26 +34,27 @@ std::string suffix;
void handle_randquote(char** parameters, int pcntl, userrec *user)
{
- std::string str;
- int fsize;
- char buf[MAXBUF];
+ std::string str;
+ int fsize;
+ char buf[MAXBUF];
- fsize = quotes->FileSize();
- srand(time(NULL));
- str = quotes->GetLine(rand() % fsize);
+ 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());
- Srv->SendServ(user->fd, buf);
- return;
+ sprintf(buf,"NOTICE %s :%s%s%s",user->nick,prefix.c_str(),str.c_str(),suffix.c_str());
+ Srv->SendServ(user->fd, buf);
+ return;
}
+
+
+
class ModuleRandQuote : public Module
{
private:
- Server *Srv;
- ConfigReader *conf;
-
+ ConfigReader *conf;
public:
ModuleRandQuote()
{