stub cap command

This commit is contained in:
Jeremy Latt
2014-02-10 11:14:34 -08:00
parent 28bd5a40ba
commit fb65203805
2 changed files with 29 additions and 4 deletions
+12 -4
View File
@@ -58,10 +58,14 @@ func (server *Server) receiveCommands(commands <-chan Command) {
if server.password == "" {
client.serverPass = true
} else if _, ok := command.(*PassCommand); !ok {
client.Reply(ErrPasswdMismatch(server))
client.Destroy()
return
} else {
switch command.(type) {
case *PassCommand, *CapCommand:
default:
client.Reply(ErrPasswdMismatch(server))
client.Destroy()
return
}
}
}
command.HandleServer(server)
@@ -393,3 +397,7 @@ func (msg *OperCommand) HandleServer(server *Server) {
client.Reply(RplYoureOper(server))
client.Reply(RplUModeIs(server, client))
}
func (msg *CapCommand) HandleServer(server *Server) {
// TODO
}