Changeset d93c0eb9 for protocols/msn


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.

Location:
protocols/msn
Files:
2 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 );
  • protocols/msn/soap.h

    r12767e3 rd93c0eb9  
    1 /* soap.h
    2  *
    3  * SOAP-related functions. Some manager at Microsoft apparently thought
    4  * MSNP wasn't XMLy enough so someone stepped up and changed that. This
    5  * is the result.
    6  *
    7  * Copyright (C) 2010 Wilmer van der Gaast <wilmer@gaast.net>
    8  *
    9  * This program is free software; you can redistribute it and/or modify             
    10  * it under the terms of the GNU General Public License version 2                   
    11  * as published by the Free Software Foundation                                     
    12  *                                                                                   
    13  * This program is distributed in the hope that is will be useful,                 
    14  * bit WITHOU ANY WARRANTY; without even the implied warranty of                   
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                   
    16  * GNU General Public License for more details.                                     
    17  *                                                                                   
    18  * You should have received a copy of the GNU General Public License               
    19  * along with this program; if not, write to the Free Software                     
    20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA         
    21  */
     1  /********************************************************************\
     2  * BitlBee -- An IRC to other IM-networks gateway                     *
     3  *                                                                    *
     4  * Copyright 2002-2010 Wilmer van der Gaast and others                *
     5  \********************************************************************/
     6
     7/* MSN module - All the SOAPy XML stuff.
     8   Some manager at Microsoft apparently thought MSNP wasn't XMLy enough so
     9   someone stepped up and changed that. This is the result. Kilobytes and
     10   more kilobytes of XML vomit to transfer tiny bits of informaiton. */
     11
     12/*
     13  This program is free software; you can redistribute it and/or modify
     14  it under the terms of the GNU General Public License as published by
     15  the Free Software Foundation; either version 2 of the License, or
     16  (at your option) any later version.
     17
     18  This program is distributed in the hope that it will be useful,
     19  but WITHOUT ANY WARRANTY; without even the implied warranty of
     20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     21  GNU General Public License for more details.
     22
     23  You should have received a copy of the GNU General Public License with
     24  the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL;
     25  if not, write to the Free Software Foundation, Inc., 59 Temple Place,
     26  Suite 330, Boston, MA  02111-1307  USA
     27*/
    2228
    2329/* Thanks to http://msnpiki.msnfanatic.com/ for lots of info on this! */
Note: See TracChangeset for help on using the changeset viewer.