Ignore:
Timestamp:
2010-06-07T15:11:09Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0e8b3e8
Parents:
4aa0f6b
Message:

Show idle + login time info in /WHOIS (if available).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee_user.c

    r4aa0f6b r56699f0  
    192192}
    193193
     194void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle )
     195{
     196        bee_t *bee = ic->bee;
     197        bee_user_t *bu;
     198       
     199        if( !( bu = bee_user_by_handle( bee, ic, handle ) ) )
     200                return;
     201       
     202        bu->login_time = login;
     203        bu->idle_time = idle;
     204}
     205
    194206void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at )
    195207{
Note: See TracChangeset for help on using the changeset viewer.