diff finch/finch.c @ 20551:51285cbe582d

merge of 'd96ec25855462962b1e1e2f093f242522695c122' and 'f44e0598263b3a48b69fd305c3ba361e95d28188'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 19 Sep 2007 10:07:03 +0000
parents d91df8046ec6
children 3cc856ca2338
line wrap: on
line diff
--- a/finch/finch.c	Wed Sep 19 09:43:07 2007 +0000
+++ b/finch/finch.c	Wed Sep 19 10:07:03 2007 +0000
@@ -297,6 +297,7 @@
 	if (opt_version) {
 		/* Translators may want to transliterate the name.
 		 It is not to be translated. */
+		gnt_quit();
 		printf("%s %s\n", _("Finch"), VERSION);
 		return 0;
 	}
@@ -419,13 +420,13 @@
 
 	gnt_init();
 
-	gnt_start(&argc, &argv);
-
-	gnt_main();
+	if (gnt_start(&argc, &argv)) {
+		gnt_main();
 
 #ifdef STANDALONE
-	purple_core_quit();
+		purple_core_quit();
 #endif
+	}
 
 	return 0;
 }