comparison src/server.c @ 1250:b5783215b245

[gaim-migrate @ 1260] decklin's clean up of the account editor, much needed. indent -kr -i8 -l105 -ncs -cp7 -npcs -T GtkWidget -T gpointer -T AppletCallbackFunc -T GtkFunction -T gaim_plugin_remove -T name -T FILE -T gchar -T user_opts -T GdkEvent -T GtkObject ... did about.c, aim.c, away.c, browser.c, buddy_chat.c, gaimrc.c, html.c, idle.c, multi.c. Need to do buddy.c, conversation.c, dialogs.c, oscar.c, perl.c, plugins.c, prefs.c, proxy.c, prpl.c, rvous.c, server.c, sound.c, toc.c, util.c. not doing gtkhtml.c because it's a piece of crap anyway, or *ticker.c because they're syd's. got rid of debug_buff, just debug_printf now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 13 Dec 2000 20:18:35 +0000
parents a9cf2f61a7b1
children 46c09828e929
comparison
equal deleted inserted replaced
1249:3e44de27622d 1250:b5783215b245
410 return; 410 return;
411 } 411 }
412 } 412 }
413 413
414 if (!b) { 414 if (!b) {
415 sprintf(debug_buff,"Error, no such person\n"); 415 debug_printf("Error, no such person\n");
416 debug_print(debug_buff);
417 return; 416 return;
418 } 417 }
419 418
420 /* This code will 'align' the name from the TOC */ 419 /* This code will 'align' the name from the TOC */
421 /* server with what's in our record. We want to */ 420 /* server with what's in our record. We want to */
659 if (!b) 658 if (!b)
660 return; 659 return;
661 660
662 plugin_event(event_chat_leave, g, b->name, 0, 0); 661 plugin_event(event_chat_leave, g, b->name, 0, 0);
663 662
664 sprintf(debug_buff, "Leaving room %s.\n", b->name); 663 debug_printf("Leaving room %s.\n", b->name);
665 debug_print(debug_buff);
666 664
667 g->buddy_chats = g_slist_remove(g->buddy_chats, b); 665 g->buddy_chats = g_slist_remove(g->buddy_chats, b);
668 666
669 while (b->in_room) { 667 while (b->in_room) {
670 char *tmp = b->in_room->data; 668 char *tmp = b->in_room->data;
709 (*gc->prpl->keepalive)(gc); 707 (*gc->prpl->keepalive)(gc);
710 } 708 }
711 709
712 void update_keepalive(struct gaim_connection *gc, gboolean on) { 710 void update_keepalive(struct gaim_connection *gc, gboolean on) {
713 if (on && !gc->keepalive && blist) { 711 if (on && !gc->keepalive && blist) {
714 debug_print("allowing NOP\n"); 712 debug_printf("allowing NOP\n");
715 gc->keepalive = gtk_timeout_add(60000, (GtkFunction)send_keepalive, gc); 713 gc->keepalive = gtk_timeout_add(60000, (GtkFunction)send_keepalive, gc);
716 } else if (!on && gc->keepalive > 0) { 714 } else if (!on && gc->keepalive > 0) {
717 debug_print("removing NOP\n"); 715 debug_printf("removing NOP\n");
718 gtk_timeout_remove(gc->keepalive); 716 gtk_timeout_remove(gc->keepalive);
719 gc->keepalive = 0; 717 gc->keepalive = 0;
720 } 718 }
721 } 719 }