nrk / redis-lua

A Lua client library for the redis key value storage system.
MIT License
731 stars 239 forks source link

exporting global variable makes imposible to use redis inside any prosody plugin #68

Open linuxmaniac opened 4 years ago

linuxmaniac commented 4 years ago

recently I've upgraded prosody and now my prosody plugin can't be loaded

Jan 24 02:28:39 sp1 (crit) prosody[28300]: modulemanager: Error initializing module 'sipwise_redis_sessions' on 'voip.sipwise.local': /usr/share/lua/5.2/redis.lua:10: Attempt to set a global: Redis = table: 0x559443704bf0
poVoq commented 1 year ago

For reference: https://github.com/sipwise/prosody/blob/master/plugins/mod_sipwise_redis_sessions.lua

I guess this is still broken?