diff options
-rw-r--r-- | protocols/jabber/io.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index d6f92a5f..9170f036 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -46,9 +46,16 @@ int jabber_write( struct im_connection *ic, char *buf, int len ) if( jd->flags & JFLAG_XMLCONSOLE ) { - char *msg; + char *msg, *s; msg = g_strdup_printf( "TX: %s", buf ); + /* Don't include auth info in XML logs. */ + if( strncmp( msg, "TX: <auth ", 10 ) == 0 && ( s = strchr( msg, '>' ) ) ) + { + s++; + while( *s && *s != '<' ) + *(s++) = '*'; + } imcb_buddy_msg( ic, JABBER_XMLCONSOLE_HANDLE, msg, 0, 0 ); g_free( msg ); } |