Mercurial > pidgin.yaz
diff libpurple/protocols/msn/httpconn.c @ 27509:35b6fd563056
Change all MSN_DEBUG_* messages to use the new purple_debug_is_verbose call
for runtime switching.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 10 Jul 2009 00:51:31 +0000 |
parents | 5e6999b6b5e4 |
children | 8e31eec7b621 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/httpconn.c Thu Jul 09 05:37:37 2009 +0000 +++ b/libpurple/protocols/msn/httpconn.c Fri Jul 10 00:51:31 2009 +0000 @@ -161,10 +161,9 @@ memcpy(body, body_start, body_len); body[body_len] = '\0'; -#ifdef MSN_DEBUG_HTTP - purple_debug_misc("msn", "Incoming HTTP buffer (header): {%s}\n", - header); -#endif + if (purple_debug_is_verbose()) + purple_debug_misc("msn", "Incoming HTTP buffer (header): {%s}\n", + header); /* Now we should be able to process the data. */ if ((s = purple_strcasestr(header, "X-MSN-Messenger: ")) != NULL)