-
- conf = new ConfigReader(ServerInstance);
- // Sort the Randomizer thingie..
- srand(time(NULL));
-
- q_file = conf->ReadValue("randquote","file",0);
- prefix = conf->ReadValue("randquote","prefix",0);
- suffix = conf->ReadValue("randquote","suffix",0);
-
- mycommand = NULL;
-
- if (q_file.empty())
- {
- RandquoteException e("m_randquote: Quotefile not specified - Please check your config.");
- throw(e);
- }
-
- quotes = new FileReader(ServerInstance, q_file);
- if(!quotes->Exists())
- {
- RandquoteException e("m_randquote: QuoteFile not Found!! Please check your config - module will not function.");
- throw(e);
- }
- else