mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-04 15:53:36 -07:00
committed by
GitHub
parent
f5bb5afdd6
commit
7256d83ff0
+2
-7
@@ -750,13 +750,8 @@ func (client *Client) run(session *Session) {
|
||||
break
|
||||
}
|
||||
|
||||
cmd, exists := Commands[msg.Command]
|
||||
if !exists {
|
||||
cmd = unknownCommand
|
||||
} else if invalidUtf8 {
|
||||
cmd = invalidUtf8Command
|
||||
}
|
||||
|
||||
var cmd Command
|
||||
msg.Command, cmd = client.server.resolveCommand(msg.Command, invalidUtf8)
|
||||
isExiting := cmd.Run(client.server, client, session, msg)
|
||||
if isExiting {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user