Changeset 22bf64e for protocols/oscar


Ignore:
Timestamp:
2005-12-13T23:27:58Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
11e090b, 703f0f7
Parents:
6aaa221 (diff), e7f46c5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Improved typing notification support. (from f0rked)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r6aaa221 r22bf64e  
    24512451        type2 = va_arg(ap, int);
    24522452        va_end(ap);
    2453 
    2454         if(type2 == 0x0001 || type2 == 0x0002)
    2455                 serv_got_typing(gc, sn, 0);
    2456 
     2453   
     2454        if(type2 == 0x0002) {
     2455                /* User is typing */
     2456                serv_got_typing(gc, sn, 0, 1);
     2457        }
     2458        else if (type2 == 0x0001) {
     2459                /* User has typed something, but is not actively typing (stale) */
     2460                serv_got_typing(gc, sn, 0, 2);
     2461        }
     2462        else {
     2463                /* User has stopped typing */
     2464                serv_got_typing(gc, sn, 0, 0);
     2465        }       
     2466       
    24572467        return 1;
    24582468}
Note: See TracChangeset for help on using the changeset viewer.