.resetdm was a bit goofed
This commit is contained in:
parent
f3ff076eb1
commit
6807e7c301
9
bot.go
9
bot.go
@ -55,7 +55,7 @@ var argmap = map[string]int{
|
|||||||
".mode": 1,
|
".mode": 1,
|
||||||
".rmmode": 1,
|
".rmmode": 1,
|
||||||
".dm": 1,
|
".dm": 1,
|
||||||
".resetdm": 1,
|
".resetdm": 0,
|
||||||
".quit": 0,
|
".quit": 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,10 +178,15 @@ func (b *Bot) Command(nick string, msg string) {
|
|||||||
break
|
break
|
||||||
|
|
||||||
case ".resetdm":
|
case ".resetdm":
|
||||||
if nick == dunmas || stringInSlice(nick, admins) {
|
if nick == dunmas {
|
||||||
dunmas = ""
|
dunmas = ""
|
||||||
fmt.Println("[cmd] resetdm")
|
fmt.Println("[cmd] resetdm")
|
||||||
b.Say("dm has been reset")
|
b.Say("dm has been reset")
|
||||||
|
} else if stringInSlice(nick, admins) && !stringInSlice(modeopt[0], rulemod) {
|
||||||
|
dunmas = ""
|
||||||
|
fmt.Println("[cmd] resetdm")
|
||||||
|
b.Say("dm has been reset")
|
||||||
|
b.Say(nick + " used override, it's super effective!")
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user