diff options
author | 2019-12-09 18:35:51 +0100 | |
---|---|---|
committer | 2019-12-09 18:35:51 +0100 | |
commit | 7702925497a8230f50d2317c9ad41a73de0683ae (patch) | |
tree | 617955544543a71baf5c17134a422c0e8fd16bbf /plugin.go | |
parent | efd401bfbf62b2216fe92b4d8be8c07e77b78482 (diff) | |
download | alps-7702925497a8230f50d2317c9ad41a73de0683ae.tar.gz alps-7702925497a8230f50d2317c9ad41a73de0683ae.tar.bz2 alps-7702925497a8230f50d2317c9ad41a73de0683ae.zip |
Make SessionManager create the IMAP client
This will allow SessionManager to re-connect when the IMAP server logs
the user out.
Diffstat (limited to 'plugin.go')
-rw-r--r-- | plugin.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -38,15 +38,15 @@ func (p *luaPlugin) onRender(l *lua.LState) int { func (p *luaPlugin) setFilter(l *lua.LState) int { name := l.CheckString(1) f := l.CheckFunction(2) - p.filters[name] = func(args... interface{}) string { + p.filters[name] = func(args ...interface{}) string { luaArgs := make([]lua.LValue, len(args)) for i, v := range args { luaArgs[i] = luar.New(l, v) } err := l.CallByParam(lua.P{ - Fn: f, - NRet: 1, + Fn: f, + NRet: 1, Protect: true, }, luaArgs...) if err != nil { |