summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-01-28 22:38:36 -0500
committerPatrick Griffis <tingping@tingping.se>2016-01-28 22:38:36 -0500
commit2c8729becdeef0ff4eea580cc92aa6ccfa085e22 (patch)
tree999ae317115d2377afefca1ddd9226a2260d38cd /src
parent35f97b65c1243afdf617a8327319006456bf85b0 (diff)
Handle PING and AUTHENTICATE with a prefix
Not the ideal solution..

Closes #1566
Diffstat (limited to 'src')
-rw-r--r--src/common/proto-irc.c8
1 files changed, 8 insertions, 0 deletions
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))