fix: Made empty user not crash the Discord module

This commit is contained in:
ptrcnull 2021-01-03 05:09:26 +01:00
parent 55441eaf85
commit 202b175a4a

View file

@ -80,7 +80,9 @@ func (m *Module) Init(mm *modweb.ModuleManager) {
} }
user := m.Callback(me) user := m.Callback(me)
if user != nil {
user.Save(session) user.Save(session)
}
return ctx.Redirect("/") return ctx.Redirect("/")
}) })