.resetdm was a bit goofed

This commit is contained in:
Elliott Pardee 2015-02-10 09:43:44 -05:00
parent f3ff076eb1
commit 6807e7c301

9
bot.go
View File

@ -55,7 +55,7 @@ var argmap = map[string]int{
".mode": 1,
".rmmode": 1,
".dm": 1,
".resetdm": 1,
".resetdm": 0,
".quit": 0,
}
@ -178,10 +178,15 @@ func (b *Bot) Command(nick string, msg string) {
break
case ".resetdm":
if nick == dunmas || stringInSlice(nick, admins) {
if nick == dunmas {
dunmas = ""
fmt.Println("[cmd] resetdm")
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