From 8ffac9291be22ad24729658986281ef99ea8411c Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 22 Jan 2013 12:39:27 -0500 Subject: [PATCH] Whoops, we want nicks not users --- bot/bot.go | 2 +- plugins/beers.go | 2 +- plugins/factoid.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/bot.go b/bot/bot.go index 215c577..afa31e0 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -70,7 +70,7 @@ func (l *Logger) Run() { } } -// User type stores user history. This is a vehicle that will follow the user for the active +// User type stores user history. This is a vehicle that will follow the user for the active // session type User struct { // Current nickname known diff --git a/plugins/beers.go b/plugins/beers.go index d1e8c8e..238a6d2 100644 --- a/plugins/beers.go +++ b/plugins/beers.go @@ -121,7 +121,7 @@ func (p *BeersPlugin) Message(message bot.Message) bool { // no matter what, if we're in here, then we've responded return true } else if parts[0] == "beers--" { - p.setBeers(user, p.getBeers(user)-1) + p.setBeers(nick, p.getBeers(nick)-1) p.Bot.SendAction(channel, "flushes") return true } else if parts[0] == "beers++" { diff --git a/plugins/factoid.go b/plugins/factoid.go index 95b1412..8488bc1 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -11,7 +11,7 @@ import ( "time" ) -// The factoid plugin provides a learning system to the bot so that it can +// The factoid plugin provides a learning system to the bot so that it can // respond to queries in a way that is unpredictable and fun // factoid stores info about our factoid for lookup and later interaction