Changeset 601e813 for protocols/msn/ns.c


Ignore:
Timestamp:
2006-05-24T23:04:18Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
80c1e4d
Parents:
46ad029 (diff), fc630f9 (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.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r46ad029 r601e813  
    257257                {
    258258                        md->buddycount = atoi( cmd[3] );
     259                        md->groupcount = atoi( cmd[4] );
     260                        if( md->groupcount > 0 )
     261                                md->grouplist = g_new0( char *, md->groupcount );
    259262                       
    260263                        if( !*cmd[3] || md->buddycount == 0 )
     
    269272                }
    270273        }
    271         else if( strcmp( cmd[0], "GTC" ) == 0 )
    272         {
    273         }
    274         else if( strcmp( cmd[0], "BLP" ) == 0 )
    275         {
    276         }
    277         else if( strcmp( cmd[0], "PRP" ) == 0 )
    278         {
    279         }
    280         else if( strcmp( cmd[0], "LSG" ) == 0 )
    281         {
    282         }
    283274        else if( strcmp( cmd[0], "LST" ) == 0 )
    284275        {
     
    297288                if( list & 1 ) /* FL */
    298289                {
    299                         add_buddy( gc, NULL, cmd[1], cmd[2] );
     290                        char *group = NULL;
     291                        int num;
     292                       
     293                        if( cmd[4] != NULL && sscanf( cmd[4], "%d", &num ) == 1 )
     294                                group = md->grouplist[num];
     295                       
     296                        add_buddy( gc, group, cmd[1], cmd[2] );
    300297                }
    301298                if( list & 2 ) /* AL */
     
    327324                }
    328325        }
    329         else if( strcmp( cmd[0], "BPR" ) == 0 )
    330         {
    331         }
    332         else if( strcmp( cmd[0], "CHG" ) == 0 )
    333         {
     326        else if( strcmp( cmd[0], "LSG" ) == 0 )
     327        {
     328                int num;
     329               
     330                if( num_parts != 4 )
     331                {
     332                        hide_login_progress_error( gc, "Syntax error" );
     333                        signoff( gc );
     334                        return( 0 );
     335                }
     336               
     337                http_decode( cmd[2] );
     338                num = atoi( cmd[1] );
     339               
     340                if( num < md->groupcount )
     341                        md->grouplist[num] = g_strdup( cmd[2] );
    334342        }
    335343        else if( strcmp( cmd[0], "CHL" ) == 0 )
     
    357365                return( msn_write( gc, buf, strlen( buf ) ) );
    358366        }
    359         else if( strcmp( cmd[0], "QRY" ) == 0 )
    360         {
    361         }
    362         else if( strcmp( cmd[0], "QNG" ) == 0 )
    363         {
    364         }
    365367        else if( strcmp( cmd[0], "ILN" ) == 0 )
    366368        {
     
    478480                        msn_buddy_ask( gc, cmd[4], cmd[5] );
    479481                }
    480         }
    481         else if( strcmp( cmd[0], "REM" ) == 0 )
    482         {
    483482        }
    484483        else if( strcmp( cmd[0], "OUT" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.