mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
minimal channel mode command
This commit is contained in:
parent
a0eed1d687
commit
d8951e1b48
4 changed files with 68 additions and 11 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue