WIP fixing the nicklist

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
. 2016-05-05 19:57:38 +12:00
parent a17c816540
commit bada029ce2

View File

@ -211,13 +211,17 @@ func (s *Server) handleCommand(command string, args []string) {
s.reply(rplWelcome)
s.clientRegistered = true
// Tell the user that they themselves joined the chat channel
s.reply(rplJoin, s.upstreamLauncher.Self.Nick, BLESSED_CHANNEL)
// Send (initially just us) nicklist for the chat channel
s.reply(rplNames, BLESSED_CHANNEL, s.upstreamLauncher.Self.Nick)
s.reply(rplEndOfNames, BLESSED_CHANNEL)
// Spawn upstream connection
s.upstream = s.upstreamLauncher.Connect()
go s.upstreamWorker()
// Tell the user that they themselves joined the chat channel
s.reply(rplJoin, s.upstreamLauncher.Self.Nick, BLESSED_CHANNEL)
default:
s.handleRegisteredCommand(command, args)
}