#endif
#include "quassel.h"
+#include "types.h"
int main(int argc, char **argv)
{
cliParser->addOption("ssl-cert", 0, "Specify the path to the SSL Certificate", "path", "configdir/quasselCert.pem");
cliParser->addOption("ssl-key", 0, "Specify the path to the SSL key", "path", "ssl-cert-path");
#endif
+ cliParser->addSwitch("debug-irc", 0,
+ "Enable logging of all raw IRC messages to debug log, including "
+ "passwords! In most cases you should also set --loglevel Debug");
+ cliParser->addOption("debug-irc-id", 0,
+ "Limit raw IRC logging to this network ID. Implies --debug-irc",
+ "database network ID", "-1");
cliParser->addSwitch("enable-experimental-dcc", 0, "Enable highly experimental and unfinished support for CTCP DCC (DANGEROUS)");
#endif
AboutData::setQuasselPersons(&aboutData);
KAboutData::setApplicationData(aboutData.kAboutData());
#endif
- if (!app.init())
- return EXIT_FAILURE;
+ try {
+ app.init();
+ }
+ catch (ExitException e) {
+ if (!e.errorString.isEmpty()) {
+ qCritical() << e.errorString;
+ }
+ return e.exitCode;
+ }
return app.exec();
}