comparison 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
comparison
equal deleted inserted replaced
311:0a8b4edc4732 312:3069be4c291e
482 g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name); 482 g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name);
483 sflap_send(buf, -1, TYPE_DATA); 483 sflap_send(buf, -1, TYPE_DATA);
484 #else 484 #else
485 sprintf(debug_buff, "Attempting to join chat room %s.\n", name); 485 sprintf(debug_buff, "Attempting to join chat room %s.\n", name);
486 debug_print(debug_buff); 486 debug_print(debug_buff);
487 /* aim_bos_reqservice(gaim_sess, gaim_conn, AIM_CONN_TYPE_CHATNAV); */
488 aim_chatnav_createroom(gaim_sess, aim_getconn_type(gaim_sess, AIM_CONN_TYPE_CHATNAV), name, 0x0004);
487 aim_chat_join(gaim_sess, gaim_conn, 0x0004, name); 489 aim_chat_join(gaim_sess, gaim_conn, 0x0004, name);
488 #endif 490 #endif
489 } 491 }
490 492
491 void serv_chat_invite(int id, char *message, char *name) 493 void serv_chat_invite(int id, char *message, char *name)
521 sflap_send(buf, -1, TYPE_DATA); 523 sflap_send(buf, -1, TYPE_DATA);
522 g_free(buf); 524 g_free(buf);
523 #else 525 #else
524 GList *bcs = buddy_chats; 526 GList *bcs = buddy_chats;
525 struct buddy_chat *b = NULL; 527 struct buddy_chat *b = NULL;
528 struct chat_connection *c = NULL;
526 529
527 while (bcs) { 530 while (bcs) {
528 b = (struct buddy_chat *)bcs->data; 531 b = (struct buddy_chat *)bcs->data;
529 if (id == b->id) 532 if (id == b->id)
530 break; 533 break;
534 537
535 if (!b) 538 if (!b)
536 return; 539 return;
537 540
538 aim_chat_leaveroom(gaim_sess, b->name); 541 aim_chat_leaveroom(gaim_sess, b->name);
542 c = find_oscar_chat(b->name);
543 if (c != NULL) {
544 oscar_chats = g_list_remove(oscar_chats, c);
545 gdk_input_remove(c->inpa);
546 g_free(c->name);
547 g_free(c);
548 }
539 #endif 549 #endif
540 } 550 }
541 551
542 void serv_chat_whisper(int id, char *who, char *message) 552 void serv_chat_whisper(int id, char *who, char *message)
543 { 553 {