diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-13 10:11:08 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-13 10:11:08 +0200 |
commit | 3a9b1236ab5e089b7413486d7d6bf61274a61d2a (patch) | |
tree | 93995e2c2ac737159ac39027da6e328eed3a0b25 /irc_im.c | |
parent | 7b59872d86160099968d0f8cdafc2853b074d39b (diff) |
Allow sending typing notifications (CTCP TYPING) again.
Diffstat (limited to 'irc_im.c')
-rw-r--r-- | irc_im.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; } |