diff --git a/server.go b/server.go index b887523..ff217d7 100644 --- a/server.go +++ b/server.go @@ -358,7 +358,7 @@ func handleCmdQuit(sv *Server, msg *irc.Message) { func handleCmdMode(sv *Server, msg *irc.Message) { if strings.HasPrefix(msg.Args[0], "#") { chid := strings.ToLower(msg.Args[0]) - if _, exists := chUsers[chid]; !exists { + if _, exists := sv.chUsers[chid]; !exists { return } if _, exists = msg.Args[1]; !exists {