From 225da0669cf4b339183d42ee460e1a9c782ae4e8 Mon Sep 17 00:00:00 2001 From: Elliott Pardee Date: Mon, 8 Jun 2015 05:53:24 -0400 Subject: [PATCH] printing should be k --- bot.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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":