Changeset df1fb67


Ignore:
Timestamp:
2007-04-21T05:18:40Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c737ba7
Parents:
17fa798
Message:

Consistency; Using OPT_T(YP|HINK)ING for outgoing typing notfication crap
too.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r17fa798 rdf1fb67  
    10021002                                if( current_typing_notice - u->last_typing_notice >= 5 )
    10031003                                {
    1004                                         u->ic->acc->prpl->send_typing( u->ic, u->handle, s[8] == '1' );
     1004                                        u->ic->acc->prpl->send_typing( u->ic, u->handle, ( s[8] - '0' ) << 8 );
    10051005                                        u->last_typing_notice = current_typing_notice;
    10061006                                }
  • protocols/jabber/jabber.c

    r17fa798 rdf1fb67  
    358358                int st;
    359359               
    360                 if( typing == 0 )
     360                if( typing & OPT_TYPING )
     361                        type = "composing";
     362                else if( typing & OPT_THINKING )
     363                        type = "paused";
     364                else
    361365                        type = "active";
    362                 else if( typing == 2 )
    363                         type = "paused";
    364                 else /* if( typing == 1 ) */
    365                         type = "composing";
    366366               
    367367                node = xt_new_node( type, NULL, NULL );
  • protocols/msn/msn.c

    r17fa798 rdf1fb67  
    342342static int msn_send_typing( struct im_connection *ic, char *who, int typing )
    343343{
    344         if( typing )
     344        if( typing & OPT_TYPING )
    345345                return( msn_buddy_msg( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) );
    346346        else
  • protocols/nogaim.h

    r17fa798 rdf1fb67  
    6161#define OPT_AWAY        0x00000004
    6262#define OPT_DOES_HTML   0x00000010
    63 #define OPT_TYPING      0x00000100
    64 #define OPT_THINKING    0x00000200
     63#define OPT_TYPING      0x00000100 /* Some pieces of code make assumptions */
     64#define OPT_THINKING    0x00000200 /* about these values... Stupid me! */
    6565
    6666/* ok. now the fun begins. first we create a connection structure */
  • protocols/oscar/oscar.c

    r17fa798 rdf1fb67  
    24482448{
    24492449        struct oscar_data *od = ic->proto_data;
    2450         return( aim_im_sendmtn(od->sess, 1, who, typing ? 0x0002 : 0x0000) );
     2450        return( aim_im_sendmtn(od->sess, 1, who, (typing & OPT_TYPING) ? 0x0002 : 0x0000) );
    24512451}
    24522452
  • protocols/yahoo/yahoo.c

    r17fa798 rdf1fb67  
    187187        struct byahoo_data *yd = ic->proto_data;
    188188       
    189         yahoo_send_typing( yd->y2_id, NULL, who, typing );
     189        yahoo_send_typing( yd->y2_id, NULL, who, ( typing & OPT_TYPING ) != 0 );
    190190       
    191191        return 1;
Note: See TracChangeset for help on using the changeset viewer.