good ol' fashioned refactoring

This commit is contained in:
Jeremy Latt
2014-02-22 13:15:31 -08:00
parent c7298c55b9
commit c5c7469cf0
3 changed files with 13 additions and 5 deletions
+1 -3
View File
@@ -390,7 +390,6 @@ func (m *JoinCommand) HandleServer(s *Server) {
channel := s.channels[name]
if channel == nil {
channel = NewChannel(s, name)
s.channels[name] = channel
}
channel.Join(client, key)
}
@@ -528,8 +527,7 @@ func (m *WhoisCommand) HandleServer(server *Server) {
client.RplWhoisOperator(mclient)
}
client.RplWhoisIdle(mclient)
client.MultilineReply(mclient.WhoisChannelsNames(), RPL_WHOISCHANNELS,
"%s :%s", mclient.Nick())
client.RplWhoisChannels(mclient)
client.RplEndOfWhois()
}
}