Changeset e7f46c5 for protocols/oscar


Ignore:
Timestamp:
2005-12-04T12:58:41Z (16 years ago)
Author:
Matt Sparks <root@…>
Branches:
master
Children:
22bf64e
Parents:
25d1be7
Message:

Implements solution to typing notifications in ticket #45

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r25d1be7 re7f46c5  
    24432443        type2 = va_arg(ap, int);
    24442444        va_end(ap);
    2445 
    2446         if(type2 == 0x0001 || type2 == 0x0002)
    2447                 serv_got_typing(gc, sn, 0);
    2448 
     2445   
     2446        if(type2 == 0x0002) {
     2447                /* User is typing */
     2448                serv_got_typing(gc, sn, 0, 1);
     2449        }
     2450        else if (type2 == 0x0001) {
     2451                /* User has typed something, but is not actively typing (stale) */
     2452                serv_got_typing(gc, sn, 0, 2);
     2453        }
     2454        else {
     2455                /* User has stopped typing */
     2456                serv_got_typing(gc, sn, 0, 0);
     2457        }       
     2458       
    24492459        return 1;
    24502460}
Note: See TracChangeset for help on using the changeset viewer.