more fixes

This commit is contained in:
Andreas Neue 2016-07-25 12:10:57 +02:00
parent b41aba0081
commit efe1ca104c
1 changed files with 1 additions and 1 deletions

View File

@ -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 {