- 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);
- }
+ std::string q_file = conf->getString("file","quotes");
+ prefix = conf->getString("prefix");
+ suffix = conf->getString("suffix");