[gaim-migrate @ 8835]

Sat, 17 Jan 2004 10:28:33 +0000

author
Christian Hammond <chipx86@chipx86.com>
date
Sat, 17 Jan 2004 10:28:33 +0000
changeset 8130
58e4e51f514b
parent 8129
93475b6a1fed
child 8131
0e465d3ad39e

[gaim-migrate @ 8835]
Some whitespace fixins, and a possible segfault fix.

src/connection.c file | annotate | diff | comparison | revisions
--- 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!

mercurial