Ignore:
Timestamp:
2010-08-14T12:20:59Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4452e69
Parents:
12767e3
Message:

Read incoming MSN status/away messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r12767e3 rd93c0eb9  
    577577                        md->handler->msglen = atoi( cmd[3] );
    578578        }
     579        else if( strcmp( cmd[0], "NOT" ) == 0 )
     580        {
     581                /* Some kind of notification, not sure if it still exists
     582                   but we have to skip the payload or stuff breaks. */
     583                if( num_parts >= 3 )
     584                        md->handler->msglen = atoi( cmd[2] );
     585        }
    579586        else if( isdigit( cmd[0][0] ) )
    580587        {
     
    686693                }
    687694        }
     695        else if( strcmp( cmd[0], "UBX" ) == 0 )
     696        {
     697                struct xt_node *psm;
     698                char *psm_text = NULL;
     699               
     700                psm = xt_from_string( msg );
     701                if( psm && strcmp( psm->name, "Data" ) == 0 &&
     702                    ( psm = xt_find_node( psm->children, "PSM" ) ) )
     703                        psm_text = psm->text;
     704               
     705                imcb_buddy_status_msg( ic, cmd[1], psm_text );
     706                xt_free_node( psm );
     707        }
    688708       
    689709        return( 1 );
Note: See TracChangeset for help on using the changeset viewer.