# HG changeset patch # User Mark Doliner # Date 1126460761 0 # Node ID 0dfda214df89264b3a0f798eccefbc51297023f2 # Parent 922782381027bc0eb4508c9e351ed67e7dc235f7 [gaim-migrate @ 13764] A few fixes for transitioning to the new status stuff committer: Tailor Script diff -r 922782381027 -r 0dfda214df89 src/protocols/bonjour/bonjour.c --- a/src/protocols/bonjour/bonjour.c Sun Sep 11 17:22:28 2005 +0000 +++ b/src/protocols/bonjour/bonjour.c Sun Sep 11 17:46:01 2005 +0000 @@ -269,8 +269,9 @@ status_description = gaim_status_get_name(status); ret = g_string_new(""); - g_string_append_printf(ret, _("Status: %s"), status_description); - g_string_append_printf(ret, _("Message: %s"), message); + g_string_append_printf(ret, _("\nStatus: %s"), status_description); + if (message != NULL) + g_string_append_printf(ret, _("\nMessage: %s"), message); return g_string_free(ret, FALSE); } @@ -398,11 +399,6 @@ option = gaim_account_option_string_new(_("Email"), "email", ""); prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); - /* - option = gaim_account_option_string_new(_("Status Message"), "message", "Available"); - prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); - */ - my_protocol = plugin; } diff -r 922782381027 -r 0dfda214df89 src/protocols/bonjour/buddy.c --- a/src/protocols/bonjour/buddy.c Sun Sep 11 17:22:28 2005 +0000 +++ b/src/protocols/bonjour/buddy.c Sun Sep 11 17:46:01 2005 +0000 @@ -123,12 +123,19 @@ if (buddy == NULL) { buddy = gaim_buddy_new(account, bonjour_buddy->name, alias); + buddy->proto_data = bonjour_buddy; gaim_blist_node_set_flags((GaimBlistNode *)buddy, GAIM_BLIST_NODE_FLAG_NO_SAVE); gaim_blist_add_buddy(buddy, NULL, group, NULL); } /* Set the user's status */ - gaim_prpl_got_user_status(account, buddy->name, status_id, NULL); + if (bonjour_buddy->msg != NULL) + gaim_prpl_got_user_status(account, buddy->name, status_id, + "message", bonjour_buddy->msg, + NULL); + else + gaim_prpl_got_user_status(account, buddy->name, status_id, + NULL); gaim_prpl_got_user_idle(account, buddy->name, FALSE, 0); g_free(alias);