Whoops, we want nicks not users

This commit is contained in:
Chris Sexton 2013-01-22 12:39:27 -05:00
parent 015a4018fe
commit 8ffac9291b
3 changed files with 3 additions and 3 deletions

View File

@ -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 // session
type User struct { type User struct {
// Current nickname known // Current nickname known

View File

@ -121,7 +121,7 @@ func (p *BeersPlugin) Message(message bot.Message) bool {
// no matter what, if we're in here, then we've responded // no matter what, if we're in here, then we've responded
return true return true
} else if parts[0] == "beers--" { } else if parts[0] == "beers--" {
p.setBeers(user, p.getBeers(user)-1) p.setBeers(nick, p.getBeers(nick)-1)
p.Bot.SendAction(channel, "flushes") p.Bot.SendAction(channel, "flushes")
return true return true
} else if parts[0] == "beers++" { } else if parts[0] == "beers++" {

View File

@ -11,7 +11,7 @@ import (
"time" "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 // respond to queries in a way that is unpredictable and fun
// factoid stores info about our factoid for lookup and later interaction // factoid stores info about our factoid for lookup and later interaction