- 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
- {
- /* Hidden Command -- Mode clients assume /quote sends raw data to an IRCd >:D */
- mycommand = new CommandRandquote(ServerInstance);
- ServerInstance->AddCommand(mycommand);