From 3a9b1236ab5e089b7413486d7d6bf61274a61d2a Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 13 Apr 2010 10:11:08 +0200 Subject: Allow sending typing notifications (CTCP TYPING) again. --- irc_im.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/irc_im.c b/irc_im.c index 85828eb1..50f38366 100644 --- a/irc_im.c +++ b/irc_im.c @@ -224,6 +224,20 @@ static gboolean bee_irc_user_ctcp( irc_user_t *iu, char *const *ctcp ) return TRUE; } } + else if( g_strcasecmp( ctcp[0], "TYPING" ) == 0 ) + { + if( iu->bu && iu->bu->ic && iu->bu->ic->acc->prpl->send_typing && ctcp[1] ) + { + int st = ctcp[1][0]; + if( st >= '0' && st <= '2' ) + { + st <<= 8; + iu->bu->ic->acc->prpl->send_typing( iu->bu->ic, iu->bu->handle, st ); + } + + return TRUE; + } + } return FALSE; } -- cgit v1.2.3