#include "modules.h"
#include "helperfuncs.h"
-Server *Srv;
-FileReader *quotes = NULL;
+static Server *Srv;
+static FileReader *quotes = NULL;
std::string q_file = "";
std::string prefix = "";
public:
RandquoteException(std::string message) : err(message) { }
- virtual char* GetReason()
+ virtual const char* GetReason()
{
return (char*)err.c_str();
}
{
RandquoteException e("m_randquote: Quotefile not specified - Please check your config.");
throw(e);
- }
+ }
quotes = new FileReader(q_file);
if(!quotes->Exists())