From 0ef1c9293b2055807e14e404cdf96cf7d8843170 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 27 Jul 2015 02:14:09 -0300 Subject: Initial implementation of ircv3 capability negotiation Mostly no-op for now. Puts registration on hold, supports the basic commands, and NAKs everything --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 802b2b37..74e185a8 100644 --- a/irc.c +++ b/irc.c @@ -726,7 +726,7 @@ void irc_desync(irc_t *irc) int irc_check_login(irc_t *irc) { - if (irc->user->user && irc->user->nick) { + if (irc->user->user && irc->user->nick && !(irc->status & USTATUS_CAP_PENDING)) { if (global.conf->authmode == AUTHMODE_CLOSED && !(irc->status & USTATUS_AUTHORIZED)) { irc_send_num(irc, 464, ":This server is password-protected."); return 0; -- cgit v1.2.3