Mercurial > pidgin
comparison src/connection.c @ 8130:ff88d4cbf4db
[gaim-migrate @ 8835]
Some whitespace fixins, and a possible segfault fix.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sat, 17 Jan 2004 10:28:33 +0000 |
| parents | fa6395637e2c |
| children | 968425e5da2f |
comparison
equal
deleted
inserted
replaced
| 8129:52cdf2740654 | 8130:ff88d4cbf4db |
|---|---|
| 106 GaimConnectionUiOps *ops; | 106 GaimConnectionUiOps *ops; |
| 107 GaimPluginProtocolInfo *prpl_info = NULL; | 107 GaimPluginProtocolInfo *prpl_info = NULL; |
| 108 | 108 |
| 109 g_return_if_fail(gc != NULL); | 109 g_return_if_fail(gc != NULL); |
| 110 | 110 |
| 111 gaim_debug(GAIM_DEBUG_INFO, "connection", | 111 gaim_debug(GAIM_DEBUG_INFO, "connection", "Registering. gc = %p\n", gc); |
| 112 "Registering. gc = %p\n", gc); | |
| 113 | 112 |
| 114 ops = gaim_connections_get_ui_ops(); | 113 ops = gaim_connections_get_ui_ops(); |
| 115 | 114 |
| 116 if (gc->prpl != NULL) | 115 if (gc->prpl != NULL) |
| 117 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 116 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
| 118 else { | 117 else |
| 119 gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), | 118 { |
| 120 gaim_account_get_username(gaim_connection_get_account(gc))); | 119 gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), |
| 120 gaim_account_get_username(gaim_connection_get_account(gc))); | |
| 121 | 121 |
| 122 gaim_debug(GAIM_DEBUG_ERROR, "connection", | 122 gaim_debug(GAIM_DEBUG_ERROR, "connection", |
| 123 "Could not get prpl info for %p\n", gc); | 123 "Could not get prpl info for %p\n", gc); |
| 124 gaim_notify_error(NULL, _("Registration Error"), | 124 gaim_notify_error(NULL, _("Registration Error"), |
| 125 message, NULL); | 125 message, NULL); |
| 126 g_free(message); | 126 g_free(message); |
| 127 return; | 127 return; |
| 128 } | 128 } |
| 129 | 129 |
| 130 if (prpl_info->register_user == NULL) | |
| 131 return; | |
| 132 | |
| 130 account = gaim_connection_get_account(gc); | 133 account = gaim_connection_get_account(gc); |
| 131 | 134 |
| 132 if (gaim_connection_get_state(gc) != GAIM_DISCONNECTED) | 135 if (gaim_connection_get_state(gc) != GAIM_DISCONNECTED) |
| 133 return; | 136 return; |
| 134 | 137 |
| 162 ops = gaim_connections_get_ui_ops(); | 165 ops = gaim_connections_get_ui_ops(); |
| 163 | 166 |
| 164 if (gc->prpl != NULL) | 167 if (gc->prpl != NULL) |
| 165 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 168 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
| 166 else { | 169 else { |
| 167 gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), | 170 gchar *message = g_strdup_printf(_("Missing protocol plugin for %s"), |
| 168 gaim_account_get_username(gaim_connection_get_account(gc))); | 171 gaim_account_get_username(gaim_connection_get_account(gc))); |
| 169 | 172 |
| 170 gaim_debug(GAIM_DEBUG_ERROR, "connection", | 173 gaim_debug(GAIM_DEBUG_ERROR, "connection", |
| 171 "Could not get prpl info for %p\n", gc); | 174 "Could not get prpl info for %p\n", gc); |
| 172 gaim_notify_error(NULL, _("Connection Error"), | 175 gaim_notify_error(NULL, _("Connection Error"), |
| 173 message, NULL); | 176 message, NULL); |
| 274 | 277 |
| 275 return FALSE; | 278 return FALSE; |
| 276 } | 279 } |
| 277 | 280 |
| 278 /* | 281 /* |
| 279 * d:)->-< | 282 * d:)->-< |
| 280 * | 283 * |
| 281 * d:O-\-< | 284 * d:O-\-< |
| 282 * | 285 * |
| 283 * d:D-/-< | 286 * d:D-/-< |
| 284 * | 287 * |
| 285 * d8D->-< DANCE! | 288 * d8D->-< DANCE! |
| 286 */ | 289 */ |
| 287 | 290 |
