--- a/libpurple/protocols/irc/irc.c Thu Mar 01 20:38:21 2018 -0600
+++ b/libpurple/protocols/irc/irc.c Mon Mar 05 02:41:47 2018 -0300
@@ -165,6 +165,13 @@
+ if (purple_debug_is_verbose()) { + char *clean = purple_utf8_salvage(tosend); + clean = g_strstrip(clean); + purple_debug_misc("irc", "<< %s\n", clean); /* If we're not buffering writes, try to send immediately */
ret = do_send(irc, tosend, buflen);
--- a/libpurple/protocols/irc/parse.c Thu Mar 01 20:38:21 2018 -0600
+++ b/libpurple/protocols/irc/parse.c Mon Mar 05 02:41:47 2018 -0300
@@ -680,6 +680,13 @@
purple_signal_emit(_irc_plugin, "irc-receiving-text", gc, &input);
+ if (purple_debug_is_verbose()) { + char *clean = purple_utf8_salvage(input); + clean = g_strstrip(clean); + purple_debug_misc("irc", ">> %s\n", clean); if (!strncmp(input, "PING ", 5)) {
msg = irc_format(irc, "vv", "PONG", input + 5);