#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "helperfuncs.h"
+
#include "inspircd.h"
this->source = "m_randquote.so";
}
- void Handle (const char** parameters, int pcntl, userrec *user)
+ CmdResult Handle (const char** parameters, int pcntl, userrec *user)
{
std::string str;
int fsize;
{
sprintf(buf, "NOTICE %s :Your administrator specified an invalid quotes file, please bug them about this.", user->nick);
user->WriteServ(std::string(buf));
+ return CMD_FAILURE;
}
- return;
+ return CMD_SUCCESS;
}
};
: Module::Module(Me)
{
- conf = new ConfigReader;
+ conf = new ConfigReader(ServerInstance);
// Sort the Randomizer thingie..
srand(time(NULL));
throw(e);
}
- quotes = new FileReader(q_file);
+ quotes = new FileReader(ServerInstance, q_file);
if(!quotes->Exists())
{
RandquoteException e("m_randquote: QuoteFile not Found!! Please check your config - module will not function.");