minimal channel mode command

This commit is contained in:
Jeremy Latt 2014-02-08 18:14:39 -08:00
parent a0eed1d687
commit d8951e1b48
4 changed files with 68 additions and 11 deletions

View file

@ -299,3 +299,14 @@ func (m *WhoisCommand) HandleServer(server *Server) {
}
client.replies <- RplEndOfWhois(server)
}
func (msg *ChannelModeCommand) HandleServer(server *Server) {
client := msg.Client()
channel := server.channels[msg.channel]
if channel == nil {
client.replies <- ErrNoSuchChannel(server, msg.channel)
return
}
client.replies <- RplChannelModeIs(server, channel)
}