redis-lua icon indicating copy to clipboard operation
redis-lua copied to clipboard

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

Open linuxmaniac opened this issue 6 years ago • 1 comments

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

linuxmaniac avatar Jan 24 '20 16:01 linuxmaniac

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

I guess this is still broken?

poVoq avatar Jan 05 '23 17:01 poVoq