soc.2009.vulture: 95fd9abd: Restore appropriate state at startup.

gdick at soc.pidgin.im gdick at soc.pidgin.im
Sat Jun 6 12:50:54 EDT 2009


-----------------------------------------------------------------
Revision: 95fd9abdf38b00bca8b99acbdf0bb6e0bfe5b67b
Ancestor: adb686370d8ca5e7687b3287c0744dfbb8697a71
Author: gdick at soc.pidgin.im
Date: 2009-06-05T11:56:08
Branch: im.pidgin.soc.2009.vulture
URL: http://d.pidgin.im/viewmtn/revision/info/95fd9abdf38b00bca8b99acbdf0bb6e0bfe5b67b

Modified files:
        vulture/purplemain.c

ChangeLog: 

Restore appropriate state at startup.

-------------- next part --------------
============================================================
--- vulture/purplemain.c	3f251d8fa3361023d35476207699c733a4758d01
+++ vulture/purplemain.c	cbe1ff5c4df90877595b7ee34619108197776f64
@@ -149,6 +149,11 @@ static int InitLibpurple(void)
 	if(!purple_core_init(VULTURE_ID))
 		return 1;
 
+	/* Sign in using specified or remembered state. */
+	if (!purple_prefs_get_bool("/purple/savedstatus/startup_current_status"))
+		purple_savedstatus_activate(purple_savedstatus_get_startup());
+	purple_accounts_restore_current_statuses();
+
 	return 0;
 }
 


More information about the Commits mailing list