Software /
code /
prosody
Comparison
plugins/mod_storage_xep0227.lua @ 12194:9965d7d126c7
mod_storage_xep0227: Fix traceback during iteration of driver stores
:include(other_set), :add(item)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 17 Jan 2022 14:12:45 +0000 |
parent | 12193:a6d2b536c41a |
child | 12195:c5788969b812 |
comparison
equal
deleted
inserted
replaced
12193:a6d2b536c41a | 12194:9965d7d126c7 |
---|---|
692 local stores = set.new(); | 692 local stores = set.new(); |
693 for handler_name, handler_funcs in pairs(handlers) do | 693 for handler_name, handler_funcs in pairs(handlers) do |
694 if handler_funcs._stores then | 694 if handler_funcs._stores then |
695 stores:include(handler_funcs._stores(self, user_xml)); | 695 stores:include(handler_funcs._stores(self, user_xml)); |
696 else | 696 else |
697 stores:include(handler_name); | 697 stores:add(handler_name); |
698 end | 698 end |
699 end | 699 end |
700 return stores; | 700 return stores; |
701 end | 701 end |
702 | 702 |