Changeset 3a9b123


Ignore:
Timestamp:
2010-04-13T08:11:08Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
573dab0
Parents:
7b59872
Message:

Allow sending typing notifications (CTCP TYPING) again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r7b59872 r3a9b123  
    225225                }
    226226        }
     227        else if( g_strcasecmp( ctcp[0], "TYPING" ) == 0 )
     228        {
     229                if( iu->bu && iu->bu->ic && iu->bu->ic->acc->prpl->send_typing && ctcp[1] )
     230                {
     231                        int st = ctcp[1][0];
     232                        if( st >= '0' && st <= '2' )
     233                        {
     234                                st <<= 8;
     235                                iu->bu->ic->acc->prpl->send_typing( iu->bu->ic, iu->bu->handle, st );
     236                        }
     237                       
     238                        return TRUE;
     239                }
     240        }
    227241       
    228242        return FALSE;
Note: See TracChangeset for help on using the changeset viewer.