finally ...

This commit is contained in:
Andreas Neue 2016-07-25 12:17:29 +02:00
parent f0e2c14879
commit ad4276152e
1 changed files with 4 additions and 4 deletions

View File

@ -361,14 +361,14 @@ func handleCmdMode(sv *Server, msg *irc.Message) {
if _, exists := sv.chUsers[chid]; !exists {
return
}
if _, exists := msg.Args[1]; !exists {
if len(msg.Args) < 2 {
return
}
modeFlag := strings.ToLower(msg.Args[1])
if _, exists := msg.Args[2]; !exists {
modeTar := ""
if len(msg.Args) < 3 {
//modeTar := ""
} else {
modeTar := strings.ToLower(msg.Args[2])
//modeTar := strings.ToLower(msg.Args[2])
}
switch modeFlag {
case "+o":