From 6069ad8bd8dfbde5986de461771de58fc43b7803 Mon Sep 17 00:00:00 2001 From: "." <.@.> Date: Sat, 7 May 2016 19:49:23 +1200 Subject: [PATCH] fix double nicks appearing in NAMES output --HG-- branch : nmdc-ircfrontend --- server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 4001788..f583a4e 100644 --- a/server.go +++ b/server.go @@ -474,10 +474,12 @@ func (s *Server) DisconnectClient() { } func (s *Server) sendNames() { - names := s.upstreamLauncher.Self.Nick + names := s.upstreamLauncher.Self.Nick // always include ourselves if s.upstream != nil { for nick, _ := range s.upstream.Users { - names += " " + nick + if nick != s.upstreamLauncher.Self.Nick { // but don't repeat ourselves + names += " " + nick + } } }