Handle PING and AUTHENTICATE with a prefix

Not the ideal solution..

Closes #1566
This commit is contained in:
Patrick Griffis 2016-01-28 22:38:36 -05:00
parent 35f97b65c1
commit 2c8729becd
1 changed files with 8 additions and 0 deletions

View File

@ -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],
@ -1139,6 +1143,10 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[],
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))
return;