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

@ -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++" {