# HG changeset patch # User Christian Hammond # Date 1074335313 0 # Node ID ff88d4cbf4db5f957be2c9a0077dc2f6cec29a52 # Parent 52cdf27406545adc3b433efd6427352768890de8 [gaim-migrate @ 8835] Some whitespace fixins, and a possible segfault fix. committer: Tailor Script diff -r 52cdf2740654 -r ff88d4cbf4db src/connection.c --- a/src/connection.c Sat Jan 17 09:03:05 2004 +0000 +++ b/src/connection.c Sat Jan 17 10:28:33 2004 +0000 @@ -108,16 +108,16 @@ g_return_if_fail(gc != NULL); - gaim_debug(GAIM_DEBUG_INFO, "connection", - "Registering. gc = %p\n", gc); + gaim_debug(GAIM_DEBUG_INFO, "connection", "Registering. gc = %p\n", gc); ops = gaim_connections_get_ui_ops(); if (gc->prpl != NULL) - prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); - else { - gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), - gaim_account_get_username(gaim_connection_get_account(gc))); + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); + else + { + gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), + gaim_account_get_username(gaim_connection_get_account(gc))); gaim_debug(GAIM_DEBUG_ERROR, "connection", "Could not get prpl info for %p\n", gc); @@ -127,6 +127,9 @@ return; } + if (prpl_info->register_user == NULL) + return; + account = gaim_connection_get_account(gc); if (gaim_connection_get_state(gc) != GAIM_DISCONNECTED) @@ -164,8 +167,8 @@ if (gc->prpl != NULL) prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); else { - gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), - gaim_account_get_username(gaim_connection_get_account(gc))); + gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), + gaim_account_get_username(gaim_connection_get_account(gc))); gaim_debug(GAIM_DEBUG_ERROR, "connection", "Could not get prpl info for %p\n", gc); @@ -276,10 +279,10 @@ } /* - * d:)->-< + * d:)->-< * * d:O-\-< - * + * * d:D-/-< * * d8D->-< DANCE!