diff -r 56c6d56d373f -r 233025cb30f5 libpurple/protocols/irc/parse.c --- a/libpurple/protocols/irc/parse.c Wed Mar 07 02:32:46 2018 +0000 +++ b/libpurple/protocols/irc/parse.c Thu Mar 08 00:09:39 2018 -0600 @@ -115,6 +115,7 @@ { "906", "*", 0, irc_msg_authfail }, /* SASL auth failed */ { "907", "*", 0, irc_msg_authfail }, /* SASL auth failed */ { "cap", "vv:", 3, irc_msg_cap }, /* SASL capable */ + { "authenticate", ":", 1, irc_msg_authenticate }, /* SASL authenticate */ #endif { "invite", "n:", 2, irc_msg_invite }, /* Invited */ { "join", ":", 1, irc_msg_join }, /* Joined a channel */ @@ -680,6 +681,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); + g_free(clean); + } + if (!strncmp(input, "PING ", 5)) { msg = irc_format(irc, "vv", "PONG", input + 5); irc_send(irc, msg);