mirror of https://github.com/velour/catbase.git
beers: fix bad indirection issue
This commit is contained in:
parent
120a9474de
commit
6a1cabc2aa
|
@ -48,7 +48,7 @@ func New(b bot.Bot) *BeersPlugin {
|
|||
);`); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
p := BeersPlugin{
|
||||
p := &BeersPlugin{
|
||||
Bot: b,
|
||||
db: b.DB(),
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ func New(b bot.Bot) *BeersPlugin {
|
|||
}
|
||||
b.Register(p, bot.Message, p.message)
|
||||
b.Register(p, bot.Help, p.help)
|
||||
return &p
|
||||
return p
|
||||
}
|
||||
|
||||
// Message responds to the bot hook on recieving messages.
|
||||
|
|
Loading…
Reference in New Issue