diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-04 16:54:52 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-04 16:54:52 +0100 |
commit | 4aa8a046968bff0a08dc5ae96e228861fa21fcbe (patch) | |
tree | 99927daf2e094c7de4c60a7ed6298cf503b5882a /protocols/msn/msn.c | |
parent | bae06178bbe3863b39ec307c34d2781a53472272 (diff) |
This works (includes some token sabotage code to ease testing), but I just
realised there's probably no need for the additional temporary NS connection.
Diffstat (limited to 'protocols/msn/msn.c')
-rw-r--r-- | protocols/msn/msn.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index c5c05087..1467f033 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -63,6 +63,7 @@ static void msn_login( account_t *acc ) md->ic = ic; md->away_state = msn_away_state_list; md->domaintree = g_tree_new( msn_domaintree_cmp ); + md->ns->fd = md->auth->fd = -1; msn_connections = g_slist_prepend( msn_connections, ic ); @@ -179,6 +180,8 @@ static void msn_set_away( struct im_connection *ic, char *state, char *message ) char *uux; struct msn_data *md = ic->proto_data; + strcpy( md->tokens[1], md->tokens[2] ); + if( state == NULL ) md->away_state = msn_away_state_list; else if( ( md->away_state = msn_away_state_by_name( state ) ) == NULL ) @@ -280,7 +283,7 @@ static void msn_add_permit( struct im_connection *ic, char *who ) static void msn_rem_permit( struct im_connection *ic, char *who ) { - msn_buddy_list_remove( ic, MSN_BUDDY_AL, who, NULL ); + //msn_buddy_list_remove( ic, MSN_BUDDY_AL, who, NULL ); } static void msn_add_deny( struct im_connection *ic, char *who ) @@ -298,7 +301,7 @@ static void msn_add_deny( struct im_connection *ic, char *who ) static void msn_rem_deny( struct im_connection *ic, char *who ) { - msn_buddy_list_remove( ic, MSN_BUDDY_BL, who, NULL ); + //msn_buddy_list_remove( ic, MSN_BUDDY_BL, who, NULL ); } static int msn_send_typing( struct im_connection *ic, char *who, int typing ) |