comparison src/conversation.c @ 2102:899c22dcee42

[gaim-migrate @ 2112] I haven't actually tested that it works, but theoretically it does. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Aug 2001 20:31:53 +0000
parents be10a1243ed7
children 0b81421021fd
comparison
equal deleted inserted replaced
2101:dd3aa315519d 2102:899c22dcee42
748 } 748 }
749 749
750 750
751 void send_callback(GtkWidget *widget, struct conversation *c) 751 void send_callback(GtkWidget *widget, struct conversation *c)
752 { 752 {
753 char *buf, *buf2, *buf3; 753 char *buf, *buf2;
754 int limit; 754 int limit;
755 755
756 if (!c->gc) 756 if (!c->gc)
757 return; 757 return;
758 758
849 g_snprintf(buf, limit, "%s", buffy); 849 g_snprintf(buf, limit, "%s", buffy);
850 g_free(buffy); 850 g_free(buffy);
851 } 851 }
852 852
853 if (!c->is_chat) { 853 if (!c->is_chat) {
854 buf3 = g_strdup(buf); 854 char *buffy;
855 write_to_conv(c, buf3, WFLAG_SEND, NULL, time((time_t)NULL)); 855
856 g_free(buf3); 856 write_to_conv(c, buf, WFLAG_SEND, NULL, time((time_t)NULL));
857 857
858 serv_send_im(c->gc, c->name, buf, 0); 858 buffy = g_strdup(buf);
859 plugin_event(event_im_displayed, c->gc, c->name, &buffy, 0);
860 if (buffy) {
861 serv_send_im(c->gc, c->name, buffy, 0);
862 g_free(buffy);
863 }
864
859 865
860 if (c->makesound && (sound_options & OPT_SOUND_SEND)) 866 if (c->makesound && (sound_options & OPT_SOUND_SEND))
861 play_sound(SEND); 867 play_sound(SEND);
862 } else { 868 } else {
863 serv_chat_send(c->gc, c->id, buf); 869 serv_chat_send(c->gc, c->id, buf);