From f56db354ee3b122509c4727e12b0ff636357a210 Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Thu, 6 Mar 2014 20:09:29 -0800 Subject: [PATCH] fix client auth for no password All clients are authorized if the server lacks a password. --- irc/client.go | 1 + irc/constants.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/irc/client.go b/irc/client.go index 70f75194..ff306f34 100644 --- a/irc/client.go +++ b/irc/client.go @@ -39,6 +39,7 @@ func NewClient(server *Server, conn net.Conn) *Client { now := time.Now() client := &Client{ atime: now, + authorized: server.password == nil, capState: CapNone, capabilities: make(CapabilitySet), channels: make(ChannelSet), diff --git a/irc/constants.go b/irc/constants.go index 131ac2a0..a86cf0ee 100644 --- a/irc/constants.go +++ b/irc/constants.go @@ -23,7 +23,7 @@ var ( ) const ( - SEM_VER = "ergonomadic-1.2.13" + SEM_VER = "ergonomadic-1.2.14" CRLF = "\r\n" MAX_REPLY_LEN = 512 - len(CRLF)