mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-29 18:28:10 -07:00
fix up MODE behavior to allow /mode <not-your-nick> and show per-channel modes, fixes #29
This commit is contained in:
+4
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user