-using namespace std;
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <fstream>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "helperfuncs.h"
-
-Server *Srv = NULL;
-FileReader *quotes = NULL;
-
-std::string q_file = "";
-std::string prefix = "";
-std::string suffix = "";
-
-/* $ModDesc: Provides random Quotes on Connect. */
-
-void handle_randquote(char** parameters, int pcntl, userrec *user)
-{
- std::string str;
- int fsize;
- char buf[MAXBUF];
- if (quotes)
- {
- fsize = quotes->FileSize();
- 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;
-}
-
-