This commit is contained in:
Elliott Pardee 2015-01-07 03:53:30 -05:00
parent 9adf9925af
commit 9330c04ccd

2
bot.go
View File

@ -92,6 +92,8 @@ func fillCharmap(nick string, cat string, item string, val string) {
func handleMessage(nick string, msg string, conn *irc.Connection) {
var args = findArguments(msg)
// TODO: Check if mode is enabled and if command can be applied.
if strings.HasPrefix(msg, ".set") && len(args) == 4 {
if nick == dunmas {
fillCharmap(args[0], args[1], args[2], args[3])