# HG changeset patch # User Mark Doliner # Date 1111378641 0 # Node ID 7d4ca0d36f2520902eee617f32b5038bb4165e98 # Parent b41c48d890d8e0bdc93b1db12009eedc9d5cba76 [gaim-migrate @ 12307] This change makes some things not crash at signon (IRC, for one) committer: Tailor Script diff -r b41c48d890d8 -r 7d4ca0d36f25 src/protocols/rendezvous/rendezvous.c --- a/src/protocols/rendezvous/rendezvous.c Mon Mar 21 03:37:59 2005 +0000 +++ b/src/protocols/rendezvous/rendezvous.c Mon Mar 21 04:17:21 2005 +0000 @@ -666,7 +666,7 @@ type = gaim_status_type_new_full(GAIM_STATUS_OFFLINE, "offline", _("Offline"), FALSE, TRUE, FALSE); status_types = g_list_append(status_types, type); - type = gaim_status_type_new_full(GAIM_STATUS_ONLINE, "online", _("Online"), FALSE, TRUE, FALSE); + type = gaim_status_type_new_full(GAIM_STATUS_ONLINE, "available", _("Available"), FALSE, TRUE, FALSE); status_types = g_list_append(status_types, type); return status_types; diff -r b41c48d890d8 -r 7d4ca0d36f25 src/status.c --- a/src/status.c Mon Mar 21 03:37:59 2005 +0000 +++ b/src/status.c Mon Mar 21 04:17:21 2005 +0000 @@ -795,6 +795,15 @@ { GaimValue *value; value = gaim_status_get_attr_value(status, id); + if (value == NULL) + { + gaim_debug_warning("status", "The attribute \"%s\" on the status \"%s\" is " + "not supported.\n", id, status->title); + /* Skip over the data and move on to the next attribute */ + va_arg(args, void *); + continue; + } + if (value->type == GAIM_TYPE_STRING) { const gchar *string_data = va_arg(args, const char *);