only send NAMES a little bit after joining (fixes blanks in hexchat), remove hack for resending names on mode request (fixes duplicates in androirc)

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
. 2016-05-07 19:49:06 +12:00
parent 4ec2881cee
commit 89a9664790

View File

@ -167,6 +167,9 @@ func (s *Server) upstreamWorker() {
case libnmdc.EVENT_CONNECTION_STATE_CHANGED: case libnmdc.EVENT_CONNECTION_STATE_CHANGED:
s.reply(rplMsg, BLANK_NICK, BLESSED_CHANNEL, "* Upstream: "+hubEvent.StateChange.Format()) s.reply(rplMsg, BLANK_NICK, BLESSED_CHANNEL, "* Upstream: "+hubEvent.StateChange.Format())
if hubEvent.StateChange == libnmdc.CONNECTIONSTATE_CONNECTED {
s.sendNames() // delay doing this until now
}
case libnmdc.EVENT_HUBNAME_CHANGED: case libnmdc.EVENT_HUBNAME_CHANGED:
s.sendChannelTopic(hubEvent.Nick) s.sendChannelTopic(hubEvent.Nick)
@ -309,7 +312,7 @@ func (s *Server) handleRegisteredCommand(command string, args []string) {
s.reply(rplJoin, s.upstreamLauncher.Self.Nick, BLESSED_CHANNEL) s.reply(rplJoin, s.upstreamLauncher.Self.Nick, BLESSED_CHANNEL)
// Send (initially just us) nicklist for the chat channel // Send (initially just us) nicklist for the chat channel
s.sendNames() //s.sendNames()
// Spawn upstream connection // Spawn upstream connection
s.upstream = s.upstreamLauncher.Connect() s.upstream = s.upstreamLauncher.Connect()