summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordx <dx@dxzone.com.ar>2017-04-05 23:18:30 -0300
committerdx <dx@dxzone.com.ar>2017-04-05 23:18:30 -0300
commit303d892d6f0a89144fc6e2c9622acb14dc777930 (patch)
treebf9dccb62f5bf2317d48b9fcec36fa8789fcbae8
parent06485acec6454873fd73c7dfde5a2b88fc4bb605 (diff)
downloadpidgin-303d892d6f0a89144fc6e2c9622acb14dc777930.tar.gz
irc: Don't rely on the trailing space in "CAP ACK :sasl "
That space is added by freenode (and possibly other ratbox/charybdis derivatives) and someone turned that into a requirement for purple's sasl to work at all. InspIRCd doesn't include it, so it broke there.
-rw-r--r--libpurple/protocols/irc/msgs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/protocols/irc/msgs.c b/libpurple/protocols/irc/msgs.c
index 99baf4ca2e..53e5f8373c 100644
--- a/libpurple/protocols/irc/msgs.c
+++ b/libpurple/protocols/irc/msgs.c
@@ -1577,7 +1577,7 @@ irc_msg_cap(struct irc_conn *irc, const char *name, const char *from, char **arg
char *pos;
size_t index;
- if (strncmp(args[2], "sasl ", 6))
+ if (strncmp(g_strstrip(args[2]), "sasl", 5))
return;
if (strncmp(args[1], "ACK", 4)) {
const char *tmp = _("SASL authentication failed: Server does not support SASL authentication.");