diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-19 01:00:31 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-19 01:00:31 +0100 |
commit | 9b0ad7e8334c7c01e8d9652aa3b1aaa6c5f6d211 (patch) | |
tree | 09908d626161e333ce64cd636b0aaede502ce85f /protocols/msn/sb.c | |
parent | 64b663524a465efb7707a2c634be97b9fb6f963b (diff) |
Moving msn_findheader() to lib/misc.c as get_rfc822_header() so I can use it
in OAuth as well. (Need it to find the Content-Type: header.)
Diffstat (limited to 'protocols/msn/sb.c')
-rw-r--r-- | protocols/msn/sb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c index 69114469..ccd65e49 100644 --- a/protocols/msn/sb.c +++ b/protocols/msn/sb.c @@ -681,7 +681,7 @@ static int msn_sb_message( struct msn_handler_data *handler, char *msg, int msgl if( strcmp( cmd[0], "MSG" ) == 0 ) { - char *ct = msn_findheader( msg, "Content-Type:", msglen ); + char *ct = get_rfc822_header( msg, "Content-Type:", msglen ); if( !ct ) return( 1 ); @@ -710,8 +710,8 @@ static int msn_sb_message( struct msn_handler_data *handler, char *msg, int msgl // Disable MSN ft support for now. else if( g_strncasecmp( ct, "text/x-msmsgsinvite", 19 ) == 0 ) { - char *command = msn_findheader( body, "Invitation-Command:", blen ); - char *cookie = msn_findheader( body, "Invitation-Cookie:", blen ); + char *command = get_rfc822_header( body, "Invitation-Command:", blen ); + char *cookie = get_rfc822_header( body, "Invitation-Cookie:", blen ); unsigned int icookie; g_free( ct ); @@ -749,7 +749,7 @@ static int msn_sb_message( struct msn_handler_data *handler, char *msg, int msgl } else if( g_strncasecmp( ct, "text/x-msmsgscontrol", 20 ) == 0 ) { - char *who = msn_findheader( msg, "TypingUser:", msglen ); + char *who = get_rfc822_header( msg, "TypingUser:", msglen ); if( who ) { |