fix double nicks appearing in NAMES output
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
89a9664790
commit
6069ad8bd8
@ -474,12 +474,14 @@ 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 {
|
||||
if nick != s.upstreamLauncher.Self.Nick { // but don't repeat ourselves
|
||||
names += " " + nick
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
s.reply(rplNames, BLESSED_CHANNEL, names)
|
||||
s.reply(rplEndOfNames, BLESSED_CHANNEL)
|
||||
|
Loading…
Reference in New Issue
Block a user