Changeset be609ff for protocols/msn/ns.c
- Timestamp:
- 2010-03-12T19:10:16Z (15 years ago)
- Branches:
- master
- Children:
- dde9d571
- Parents:
- 08e5bb2 (diff), 8b6b740 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/ns.c
r08e5bb2 rbe609ff 420 420 { 421 421 /* FIXME: Warn/Bomb about unknown away state? */ 422 st = msn_away_state_list; 423 } 424 425 imcb_buddy_status( ic, cmd[3], OPT_LOGGED_IN | 426 ( st->number ? OPT_AWAY : 0 ), st->name, NULL ); 422 st = msn_away_state_list + 1; 423 } 424 425 imcb_buddy_status( ic, cmd[3], OPT_LOGGED_IN | 426 ( st != msn_away_state_list ? OPT_AWAY : 0 ), 427 st->name, NULL ); 427 428 } 428 429 else if( strcmp( cmd[0], "FLN" ) == 0 ) … … 449 450 { 450 451 /* FIXME: Warn/Bomb about unknown away state? */ 451 st = msn_away_state_list; 452 } 453 454 imcb_buddy_status( ic, cmd[2], OPT_LOGGED_IN | 455 ( st->number ? OPT_AWAY : 0 ), st->name, NULL ); 452 st = msn_away_state_list + 1; 453 } 454 455 imcb_buddy_status( ic, cmd[2], OPT_LOGGED_IN | 456 ( st != msn_away_state_list ? OPT_AWAY : 0 ), 457 st->name, NULL ); 456 458 } 457 459 else if( strcmp( cmd[0], "RNG" ) == 0 ) … … 663 665 } 664 666 665 if( arg1 )g_free( arg1 );666 if( mtype )g_free( mtype );667 g_free( arg1 ); 668 g_free( mtype ); 667 669 } 668 670 else if( g_strncasecmp( ct, "text/x-msmsgsprofile", 20 ) == 0 ) … … 672 674 else if( g_strncasecmp( ct, "text/x-msmsgsinitialemailnotification", 37 ) == 0 ) 673 675 { 674 char *inbox = msn_findheader( body, "Inbox-Unread:", blen ); 675 char *folders = msn_findheader( body, "Folders-Unread:", blen ); 676 677 if( inbox && folders && set_getbool( &ic->acc->set, "mail_notifications" ) ) 676 if( set_getbool( &ic->acc->set, "mail_notifications" ) ) 678 677 { 679 imcb_log( ic, "INBOX contains %s new messages, plus %s messages in other folders.", inbox, folders ); 678 char *inbox = msn_findheader( body, "Inbox-Unread:", blen ); 679 char *folders = msn_findheader( body, "Folders-Unread:", blen ); 680 681 if( inbox && folders ) 682 imcb_log( ic, "INBOX contains %s new messages, plus %s messages in other folders.", inbox, folders ); 683 684 g_free( inbox ); 685 g_free( folders ); 680 686 } 681 682 g_free( inbox );683 g_free( folders );684 687 } 685 688 else if( g_strncasecmp( ct, "text/x-msmsgsemailnotification", 30 ) == 0 ) 686 689 { 687 char *from = msn_findheader( body, "From-Addr:", blen ); 688 char *fromname = msn_findheader( body, "From:", blen ); 689 690 if( from && fromname && set_getbool( &ic->acc->set, "mail_notifications" ) ) 690 if( set_getbool( &ic->acc->set, "mail_notifications" ) ) 691 691 { 692 imcb_log( ic, "Received an e-mail message from %s <%s>.", fromname, from ); 692 char *from = msn_findheader( body, "From-Addr:", blen ); 693 char *fromname = msn_findheader( body, "From:", blen ); 694 695 if( from && fromname ) 696 imcb_log( ic, "Received an e-mail message from %s <%s>.", fromname, from ); 697 698 g_free( from ); 699 g_free( fromname ); 693 700 } 694 701 }
Note: See TracChangeset
for help on using the changeset viewer.