# HG changeset patch # User Paul Aurich # Date 1290220979 0 # Node ID b07841f6cd152a93c7536343bdad915f3977f2f2 # Parent 02c0a2640fc2e148773fc157200c5bd3603d85bb jabber: Print out plaintext-equivalent passwords when PURPLE_UNSAFE_DEBUG is set. Refs #a14565. diff -r 02c0a2640fc2 -r b07841f6cd15 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Thu Nov 18 20:47:28 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Nov 20 02:42:59 2010 +0000 @@ -477,7 +477,7 @@ char *text = NULL, *last_part = NULL, *tag_start = NULL; /* Because debug logs with plaintext passwords make me sad */ - if(js->state != JABBER_STREAM_CONNECTED && + if (!purple_debug_is_unsafe() && js->state != JABBER_STREAM_CONNECTED && /* Either or ... */ (((tag_start = strstr(data, "