diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2005-12-18 02:06:11 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2005-12-18 02:06:11 +0100 |
commit | 43f205b144412ab1186a545321b54792d92d2043 (patch) | |
tree | 882c9f1a4d6a036e84e050fcf6e34fe1e90ebb1b | |
parent | a03a9f376fe2fd1737ba7af6a87d99fe43a2a72e (diff) |
Crashbug fix in new MSN Passport code (plus a fix to make the 005 reply actually work).
-rw-r--r-- | irc.c | 2 | ||||
-rw-r--r-- | protocols/msn/passport.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1075,7 +1075,7 @@ void irc_login( irc_t *irc ) irc_reply( irc, 2, ":Host %s is running BitlBee " BITLBEE_VERSION " " ARCH "/" CPU ".", irc->myhost ); irc_reply( irc, 3, ":%s", IRCD_INFO ); irc_reply( irc, 4, "%s %s %s %s", irc->myhost, BITLBEE_VERSION, UMODES, CMODES ); - irc_reply( irc, 5, "PREFIX=(ov)@% CHANTYPES=#& CHANMODES=,,,%s NICKLEN=%d NETWORK=BitlBee CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 :are supported by this server", CMODES, MAX_NICK_LENGTH - 1 ); + irc_reply( irc, 5, "PREFIX=(ov)@%% CHANTYPES=#& CHANMODES=,,,%s NICKLEN=%d NETWORK=BitlBee CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 :are supported by this server", CMODES, MAX_NICK_LENGTH - 1 ); irc_motd( irc ); irc_umode_set( irc, irc->myhost, "+" UMODE ); diff --git a/protocols/msn/passport.c b/protocols/msn/passport.c index e04d14cb..34703432 100644 --- a/protocols/msn/passport.c +++ b/protocols/msn/passport.c @@ -87,7 +87,7 @@ static void passport_get_id_ready( struct http_request *req ) { struct passport_reply *rep = req->data; - if( !g_slist_find( msn_connections, rep->data ) ) + if( !g_slist_find( msn_connections, rep->data ) || !req->finished || !req->reply_headers ) { destroy_reply( rep ); return; @@ -168,7 +168,7 @@ static void passport_retrieve_dalogin_ready( struct http_request *req ) char *dalogin; char *urlend; - if( !g_slist_find( msn_connections, rep->data ) ) + if( !g_slist_find( msn_connections, rep->data ) || !req->finished || !req->reply_headers ) { destroy_reply( rep ); return; |