changeset 1149:22bf2c3ec2e3

[gaim-migrate @ 1159] minor details committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 27 Nov 2000 23:06:50 +0000
parents 0a14a9a844cb
children aa3dda7fc352
files src/oscar.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/oscar.c	Mon Nov 27 22:58:39 2000 +0000
+++ b/src/oscar.c	Mon Nov 27 23:06:50 2000 +0000
@@ -253,7 +253,7 @@
 	struct aim_conn_t *conn = (struct aim_conn_t *)data;
 	struct gaim_connection *gc = find_gaim_conn_by_oscar_conn(conn);
 	struct oscar_data *odata = (struct oscar_data *)gc->proto_data;
-	if (!gc) {
+	if (!g_slist_find(connections, gc)) {
 		/* oh boy. this is probably bad. i guess the only thing we can really do
 		 * is return? */
 		debug_print("oscar callback for closed connection.\n");
@@ -1049,8 +1049,7 @@
 			while (i < exchangecount)
 				debug_printf("chat info: \t\t%d\n", exchanges[i++].number);
 			if (odata->create_exchange) {
-				sprintf(debug_buff, "creating room %s\n", odata->create_name);
-				debug_print(debug_buff);
+				debug_printf("creating room %s\n", odata->create_name);
 				aim_chatnav_createroom(sess, command->conn, odata->create_name,
 						odata->create_exchange);
 				odata->create_exchange = 0;