+ ConfigTag* conf = ServerInstance->Config->ConfValue("randquote");
+
+ std::string q_file = conf->getString("file","quotes");
+ prefix = conf->getString("prefix");
+ suffix = conf->getString("suffix");
+
+ quotes = new FileReader(q_file);
+ if (!quotes->Exists())
+ {
+ throw ModuleException("m_randquote: QuoteFile not Found!! Please check your config - module will not function.");
+ }
+ ServerInstance->AddCommand(&cmd);
+ Implementation eventlist[] = { I_OnUserConnect };
+ ServerInstance->Modules->Attach(eventlist, this, 1);