aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/msn.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/msn/msn.c')
-rw-r--r--protocols/msn/msn.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index fe1d16ac..de8271e8 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -300,10 +300,14 @@ static void msn_rem_deny( struct im_connection *ic, char *who )
static int msn_send_typing( struct im_connection *ic, char *who, int typing )
{
- if( typing & OPT_TYPING )
+ struct bee_user *bu = bee_user_by_handle( ic->bee, ic, who );
+
+ if( !( bu->flags & BEE_USER_ONLINE ) )
+ return 0;
+ else if( typing & OPT_TYPING )
return( msn_buddy_msg( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) );
else
- return( 1 );
+ return 1;
}
static char *set_eval_display_name( set_t *set, char *value )