diff src/server.c @ 312:3069be4c291e

[gaim-migrate @ 322] I don't know why I did this. I have homework due in 15 hours that I haven't started yet, and it's in a language I don't know and it's a project I don't understand. If my teacher knew about this, he would be pissed. He looks pissed all the time, even when he's not. When he smiles he looks devilish. Maybe I only think that because literally half the class flunked the midterm. I am not joking about that. More people got F's than A, B, and C combined. It's 2 am and the homework's due at 5 tomorrow so what do I do? Get chat to work. Wow. That's going to look good on my resume. "Why did you flunk this class?" "Because I was getting chat in Instant Messenger to work." Not that that's not something to be proud of, but I wonder which is more important to employers. The big battle, experience versus education. Just because you got good grades in college doesn't mean you're smarter than someone who flunked, it just means you put in the effort necessary to get a better grade and the other person didn't. Maybe the person who flunked was working on real honest-to-god actually *used* software, as opposed to some stupid tree that only gets used for a fringe branch of computer science that doesn't offer much more than a normal heap or binary search tree offers. Maybe the person was out there reverse-engineering protocols and allowing cross- platform communication to occur, creating interoperability and causing a greater demand not only for the product, but for the platform it runs on! Given the choices, who would you pick? Someone who was told how to code a tree and managed to get it to work, or someone who increases your userbase and marketability? Enough of my rant for a while. I've had waaaaay too much sugar (gummy candy is deadly). committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 02 Jun 2000 09:11:48 +0000
parents 61894ab8c47e
children f6406aeb2691
line wrap: on
line diff
--- a/src/server.c	Fri Jun 02 06:08:29 2000 +0000
+++ b/src/server.c	Fri Jun 02 09:11:48 2000 +0000
@@ -484,6 +484,8 @@
 #else
 	sprintf(debug_buff, "Attempting to join chat room %s.\n", name);
 	debug_print(debug_buff);
+	/* aim_bos_reqservice(gaim_sess, gaim_conn, AIM_CONN_TYPE_CHATNAV); */
+	aim_chatnav_createroom(gaim_sess, aim_getconn_type(gaim_sess, AIM_CONN_TYPE_CHATNAV), name, 0x0004);
 	aim_chat_join(gaim_sess, gaim_conn, 0x0004, name);
 #endif
 }
@@ -523,6 +525,7 @@
 #else
 	GList *bcs = buddy_chats;
 	struct buddy_chat *b = NULL;
+	struct chat_connection *c = NULL;
 
 	while (bcs) {
 		b = (struct buddy_chat *)bcs->data;
@@ -536,6 +539,13 @@
 		return;
 
 	aim_chat_leaveroom(gaim_sess, b->name);
+	c = find_oscar_chat(b->name);
+	if (c != NULL) {
+		oscar_chats = g_list_remove(oscar_chats, c);
+		gdk_input_remove(c->inpa);
+		g_free(c->name);
+		g_free(c);
+	}
 #endif
 }