diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-21 23:42:01 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-21 23:42:01 +0100 |
commit | 4022b686cce05eb9a42b744335abd09d5ae7d0f0 (patch) | |
tree | fe827cdf6aef1fe7c3e9d0458848be3edda60ea1 /protocols/bee_user.c | |
parent | 327af51a28fe292cfc4a68caa086a13175a69719 (diff) | |
parent | c00dd7117be2a5fda92d6f7d72b0e4e54fa5d615 (diff) |
Merge mainline.
Diffstat (limited to 'protocols/bee_user.c')
-rw-r--r-- | protocols/bee_user.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/bee_user.c b/protocols/bee_user.c index 86f87f86..71b15d29 100644 --- a/protocols/bee_user.c +++ b/protocols/bee_user.c @@ -194,6 +194,13 @@ void imcb_buddy_status( struct im_connection *ic, const char *handle, int flags, else bu->status = NULL; + if( bu->status == NULL && ( flags & OPT_MOBILE ) && + set_getbool( &bee->set, "mobile_is_away" ) ) + { + bu->flags |= BEE_USER_AWAY; + bu->status = g_strdup( "Mobile" ); + } + if( bee->ui->user_status ) bee->ui->user_status( bee, bu, old ); @@ -267,7 +274,7 @@ void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, ui imcb_log( ic, "Message from unknown handle %s:\n%s", handle, msg ); } -void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags ) +void imcb_buddy_typing( struct im_connection *ic, const char *handle, uint32_t flags ) { bee_user_t *bu; |