comparison src/protocols/bonjour/bonjour.c @ 11519:0dfda214df89

[gaim-migrate @ 13764] A few fixes for transitioning to the new status stuff committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 11 Sep 2005 17:46:01 +0000
parents f8a447af7494
children 5a2c38d33eb4
comparison
equal deleted inserted replaced
11518:922782381027 11519:0dfda214df89
267 status_description = _("Idle"); 267 status_description = _("Idle");
268 else 268 else
269 status_description = gaim_status_get_name(status); 269 status_description = gaim_status_get_name(status);
270 270
271 ret = g_string_new(""); 271 ret = g_string_new("");
272 g_string_append_printf(ret, _("<b>Status:</b> %s"), status_description); 272 g_string_append_printf(ret, _("\n<b>Status:</b> %s"), status_description);
273 g_string_append_printf(ret, _("<b>Message:</b> %s"), message); 273 if (message != NULL)
274 g_string_append_printf(ret, _("\n<b>Message:</b> %s"), message);
274 275
275 return g_string_free(ret, FALSE); 276 return g_string_free(ret, FALSE);
276 } 277 }
277 278
278 static GaimPlugin *my_protocol = NULL; 279 static GaimPlugin *my_protocol = NULL;
396 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); 397 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
397 398
398 option = gaim_account_option_string_new(_("Email"), "email", ""); 399 option = gaim_account_option_string_new(_("Email"), "email", "");
399 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); 400 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
400 401
401 /*
402 option = gaim_account_option_string_new(_("Status Message"), "message", "Available");
403 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
404 */
405
406 my_protocol = plugin; 402 my_protocol = plugin;
407 } 403 }
408 404
409 GAIM_INIT_PLUGIN(bonjour, init_plugin, info); 405 GAIM_INIT_PLUGIN(bonjour, init_plugin, info);