forked from External/ergo
fix up MODE behavior to allow /mode <not-your-nick> and show per-channel modes, fixes #29
This commit is contained in:
parent
37e15d7f62
commit
e1c235a9ea
2 changed files with 20 additions and 3 deletions
|
|
@ -145,10 +145,12 @@ func (m *ModeCommand) HandleServer(s *Server) {
|
|||
}
|
||||
}
|
||||
|
||||
// Who should get these replies?
|
||||
if len(changes) > 0 {
|
||||
client.Reply(RplMode(client, target, changes))
|
||||
client.Reply(RplModeChanges(client, target, changes))
|
||||
} else if client == target {
|
||||
client.RplUModeIs(client)
|
||||
}
|
||||
client.Reply(RplCurrentMode(client, target))
|
||||
}
|
||||
|
||||
func (msg *ChannelModeCommand) HandleServer(server *Server) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue