Changeset 4255320 for protocols/msn
- Timestamp:
- 2010-07-27T22:18:27Z (14 years ago)
- Branches:
- master
- Children:
- 13fa2db
- Parents:
- f6f5eee
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
rf6f5eee r4255320 301 301 static int msn_send_typing( struct im_connection *ic, char *who, int typing ) 302 302 { 303 if( typing & OPT_TYPING ) 303 struct bee_user *bu = bee_user_by_handle( ic->bee, ic, who ); 304 305 if( !( bu->flags & BEE_USER_ONLINE ) ) 306 return 0; 307 else if( typing & OPT_TYPING ) 304 308 return( msn_buddy_msg( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) ); 305 309 else 306 return ( 1 );310 return 1; 307 311 } 308 312 -
protocols/msn/msn_util.c
rf6f5eee r4255320 398 398 GString *ret; 399 399 GSList *l; 400 int n = 0; 400 401 401 402 l = *list; … … 412 413 m = l->data; 413 414 414 g_string_append_printf( ret, "\n%s", m->text ); 415 if( strncmp( m->text, "\r\r\r", 3 ) != 0 ) 416 { 417 g_string_append_printf( ret, "\n%s", m->text ); 418 n ++; 419 } 415 420 416 421 g_free( m->who ); … … 423 428 *list = NULL; 424 429 425 imcb_log( ic, "%s", ret->str ); 430 if( n > 0 ) 431 imcb_log( ic, "%s", ret->str ); 426 432 g_string_free( ret, TRUE ); 427 433 }
Note: See TracChangeset
for help on using the changeset viewer.