From 6a1cabc2aaecf55165e1540ad105cbea65d9574f Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Fri, 15 Feb 2019 15:12:09 -0500 Subject: [PATCH] beers: fix bad indirection issue --- plugins/beers/beers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/beers/beers.go b/plugins/beers/beers.go index 3ad3dee..4e1640c 100644 --- a/plugins/beers/beers.go +++ b/plugins/beers/beers.go @@ -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.