diff --git a/server.go b/server.go index ff217d7..3241817 100644 --- a/server.go +++ b/server.go @@ -361,11 +361,11 @@ func handleCmdMode(sv *Server, msg *irc.Message) { if _, exists := sv.chUsers[chid]; !exists { return } - if _, exists = msg.Args[1]; !exists { + if _, exists := msg.Args[1]; !exists { return } modeFlag := strings.ToLower(msg.Args[1]) - if _, exists = msg.Args[2]; !exists { + if _, exists := msg.Args[2]; !exists { modeTar := "" } else { modeTar := strings.ToLower(msg.Args[2])