diff --git a/bot.go b/bot.go index ec06999..0d1c2c8 100755 --- a/bot.go +++ b/bot.go @@ -49,7 +49,7 @@ var dict = map[string]string{ var argmap = map[string]int{ ".set": 4, - ".print": 3, + ".print": 2, ".vote": 1, ".d": 1, ".mode": 1, @@ -155,13 +155,8 @@ func (b *Bot) Command(nick string, msg string) { } } case ".print": - if len(args) == 4 { - b.Say(args[0] + "[" + args[3] + "] = " + printChar(args[0], args[1], args[2], args[3])) - fmt.Println("[cmd] print") - } else { - b.Say(args[0] + "[" + args[2] + "] = " + printChar(args[0], args[1], "nil", args[2])) - fmt.Println("[cmd] print") - } + b.Say(args[0] + "[" + args[2] + "] = " + accessChar(false, args[0], args[1], args[2], "nil")) + fmt.Println("[cmd] print") break case ".vote":