comparison finch/finch.c @ 20542:d91df8046ec6

"(04:48:00) Alver: finch --version doesn't print the version, and just launches finch" Fixed.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 19 Sep 2007 08:53:00 +0000
parents 7dbeede6da97
children 3cc856ca2338
comparison
equal deleted inserted replaced
20541:a9022965162b 20542:d91df8046ec6
295 } 295 }
296 /* show version message */ 296 /* show version message */
297 if (opt_version) { 297 if (opt_version) {
298 /* Translators may want to transliterate the name. 298 /* Translators may want to transliterate the name.
299 It is not to be translated. */ 299 It is not to be translated. */
300 gnt_quit();
300 printf("%s %s\n", _("Finch"), VERSION); 301 printf("%s %s\n", _("Finch"), VERSION);
301 return 0; 302 return 0;
302 } 303 }
303 304
304 /* set a user-specified config directory */ 305 /* set a user-specified config directory */
417 g_set_application_name(_("Finch")); 418 g_set_application_name(_("Finch"));
418 #endif 419 #endif
419 420
420 gnt_init(); 421 gnt_init();
421 422
422 gnt_start(&argc, &argv); 423 if (gnt_start(&argc, &argv)) {
423 424 gnt_main();
424 gnt_main();
425 425
426 #ifdef STANDALONE 426 #ifdef STANDALONE
427 purple_core_quit(); 427 purple_core_quit();
428 #endif 428 #endif
429 }
429 430
430 return 0; 431 return 0;
431 } 432 }
432 433