changeset 20204:de68625c4c04

applied changes from 1cb036aecbbe359226e69874379d39ce74c8daf6 through f07a68d96d4f38abf44c83746c89d9f0e134c535
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:35:00 +0000
parents a842ee320d51
children 859087457089
files finch/finch.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/finch/finch.c	Fri Sep 28 15:24:35 2007 +0000
+++ b/finch/finch.c	Fri Sep 28 15:35:00 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;
 }