|
@@ -661,12 +661,7 @@ func (client *Client) run(session *Session) {
|
661
|
661
|
|
662
|
662
|
cmd, exists := Commands[msg.Command]
|
663
|
663
|
if !exists {
|
664
|
|
- if len(msg.Command) > 0 {
|
665
|
|
- session.Send(nil, client.server.name, ERR_UNKNOWNCOMMAND, client.Nick(), msg.Command, client.t("Unknown command"))
|
666
|
|
- } else {
|
667
|
|
- session.Send(nil, client.server.name, ERR_UNKNOWNCOMMAND, client.Nick(), "lastcmd", client.t("No command given"))
|
668
|
|
- }
|
669
|
|
- continue
|
|
664
|
+ cmd = unknownCommand
|
670
|
665
|
}
|
671
|
666
|
|
672
|
667
|
isExiting := cmd.Run(client.server, client, session, msg)
|