Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/conversation.c Wed Aug 01 19:22:07 2001 +0000 +++ b/src/conversation.c Wed Aug 01 20:31:53 2001 +0000 @@ -750,7 +750,7 @@ void send_callback(GtkWidget *widget, struct conversation *c) { - char *buf, *buf2, *buf3; + char *buf, *buf2; int limit; if (!c->gc) @@ -851,11 +851,17 @@ } if (!c->is_chat) { - buf3 = g_strdup(buf); - write_to_conv(c, buf3, WFLAG_SEND, NULL, time((time_t)NULL)); - g_free(buf3); + char *buffy; + + write_to_conv(c, buf, WFLAG_SEND, NULL, time((time_t)NULL)); - serv_send_im(c->gc, c->name, buf, 0); + buffy = g_strdup(buf); + plugin_event(event_im_displayed, c->gc, c->name, &buffy, 0); + if (buffy) { + serv_send_im(c->gc, c->name, buffy, 0); + g_free(buffy); + } + if (c->makesound && (sound_options & OPT_SOUND_SEND)) play_sound(SEND);