mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-24 16:18:10 -07:00
good ol' fashioned refactoring
This commit is contained in:
+1
-3
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user