From 2c8729becdeef0ff4eea580cc92aa6ccfa085e22 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Thu, 28 Jan 2016 22:38:36 -0500 Subject: [PATCH] Handle PING and AUTHENTICATE with a prefix Not the ideal solution.. Closes #1566 --- src/common/proto-irc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index b737d23b..57dc587b 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1104,6 +1104,10 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[], } return; + case WORDL('P', 'I', 'N', 'G'): + tcp_sendf (sess->server, "PONG %s\r\n", word_eol[3]); + return; + case WORDL('P','O','N','G'): inbound_ping_reply (serv->server_session, (word[4][0] == ':') ? word[4] + 1 : word[4], @@ -1138,6 +1142,10 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[], case WORDL('A','C','C','O'): inbound_account (serv, nick, word[3], tags_data); return; + + case WORDL('A', 'U', 'T', 'H'): + inbound_sasl_authenticate (sess->server, word_eol[3]); + return; case WORDL('I','N','V','I'): if (ignore_check (word[1], IG_INVI))