even more fixes
This commit is contained in:
parent
efe1ca104c
commit
f0e2c14879
|
@ -361,11 +361,11 @@ func handleCmdMode(sv *Server, msg *irc.Message) {
|
||||||
if _, exists := sv.chUsers[chid]; !exists {
|
if _, exists := sv.chUsers[chid]; !exists {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, exists = msg.Args[1]; !exists {
|
if _, exists := msg.Args[1]; !exists {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
modeFlag := strings.ToLower(msg.Args[1])
|
modeFlag := strings.ToLower(msg.Args[1])
|
||||||
if _, exists = msg.Args[2]; !exists {
|
if _, exists := msg.Args[2]; !exists {
|
||||||
modeTar := ""
|
modeTar := ""
|
||||||
} else {
|
} else {
|
||||||
modeTar := strings.ToLower(msg.Args[2])
|
modeTar := strings.ToLower(msg.Args[2])
|
||||||
|
|
Loading…
Reference in New Issue