diff options
author | daurnimator <quae@daurnimator.com> | 2014-03-19 12:03:15 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-03-19 12:03:15 -0400 |
commit | f11ccaa2fe22a7f5852309847e72f42ace473265 (patch) | |
tree | 326c9d85c38b8c3ee8682fab30a114b7f1f28b8f /plugins/muc/mod_muc.lua | |
parent | dc2b5beff10a767092fe92f1aeb706a694bce062 (diff) | |
download | prosody-f11ccaa2fe22a7f5852309847e72f42ace473265.tar.gz prosody-f11ccaa2fe22a7f5852309847e72f42ace473265.zip |
plugins/muc: Provide a reasonable default `route_stanza`
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 3 |
1 files changed, 0 insertions, 3 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; |