Diff

plugins/muc/mod_muc.lua @ 6111:f8b94903be52

plugins/muc: Provide a reasonable default `route_stanza`
author daurnimator <quae@daurnimator.com>
date Wed, 19 Mar 2014 12:03:15 -0400
parent 6110:d007b3c49078
child 6129:6c66571ab0f9
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Tue Mar 18 18:56:26 2014 -0400
+++ b/plugins/muc/mod_muc.lua	Wed Mar 19 12:03:15 2014 -0400
@@ -64,7 +64,6 @@
 	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 @@
 
 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 @@
 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;