Changeset 573dab0 for irc_im.c


Ignore:
Timestamp:
2010-04-13T10:20:04Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
81186cab
Parents:
3a9b123
Message:

Incoming typing notifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r3a9b123 r573dab0  
    116116        g_free( wrapped );
    117117        g_free( prefix );
     118       
     119        return TRUE;
     120}
     121
     122static gboolean bee_irc_user_typing( bee_t *bee, bee_user_t *bu, uint32_t flags )
     123{
     124        irc_t *irc = (irc_t *) bee->ui_data;
     125       
     126        if( set_getbool( &bee->set, "typing_notice" ) )
     127                irc_send_msg_f( (irc_user_t *) bu->ui_data, "PRIVMSG", irc->user->nick,
     128                                "\001TYPING %d\001", ( flags >> 8 ) & 3 );
     129        else
     130                return FALSE;
    118131       
    119132        return TRUE;
     
    193206        bee_irc_user_status,
    194207        bee_irc_user_msg,
     208        bee_irc_user_typing,
    195209       
    196210        bee_irc_ft_in_start,
Note: See TracChangeset for help on using the changeset viewer.