From c8f62ae151b2a6d2d096d375b8c8fd063fe7a9ef Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 29 Aug 2013 20:46:07 +0100 Subject: [PATCH] Improved server name protection --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index ba4ed29..5614abf 100644 --- a/server.go +++ b/server.go @@ -74,7 +74,7 @@ func (s *Server) handleEvent(e Event) { } //Protect the server name from being used - if newNick == s.name { + if strings.ToLower(newNick) == strings.ToLower(s.name) { e.client.reply(errNickInUse, newNick) return }