aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/muc/mod_muc.lua3
-rw-r--r--plugins/muc/muc.lib.lua4
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 5f4b0c62..a1ba5738 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -64,7 +64,6 @@ function muclib.room_mt:set_affiliation(actor, jid, affiliation, callback, reaso
return _set_affiliation(self, actor, jid, affiliation, callback, reason);
end
-local function room_route_stanza(room, stanza) module:send(stanza); end
local function room_save(room, forced)
local node = jid_split(room.jid);
persistent_rooms[room.jid] = room._data.persistent;
@@ -89,7 +88,6 @@ end
function create_room(jid)
local room = muc_new_room(jid);
- room.route_stanza = room_route_stanza;
room.save = room_save;
rooms[jid] = room;
if lock_rooms then
@@ -131,7 +129,6 @@ end
if persistent_errors then persistent_rooms_storage:set(nil, persistent_rooms); end
local host_room = muc_new_room(muc_host);
-host_room.route_stanza = room_route_stanza;
host_room.save = room_save;
rooms[muc_host] = host_room;
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 9f7b5c70..198e25a3 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1145,7 +1145,9 @@ function room_mt:handle_stanza(origin, stanza)
end
end
-function room_mt:route_stanza(stanza) end -- Replace with a routing function, e.g., function(room, stanza) core_route_stanza(origin, stanza); end
+function room_mt:route_stanza(stanza)
+ module:send(stanza)
+end
function room_mt:get_affiliation(jid)
local node, host, resource = jid_split(jid);