plugins/muc/mod_muc: host sessions have a .send these days
authordaurnimator <quae@daurnimator.com>
Tue, 18 Mar 2014 18:56:26 -0400
changeset 6110 d007b3c49078
parent 6109 566aba0482b6
child 6111 f8b94903be52
plugins/muc/mod_muc: host sessions have a .send these days
plugins/muc/mod_muc.lua
--- a/plugins/muc/mod_muc.lua	Tue Mar 18 18:55:52 2014 -0400
+++ b/plugins/muc/mod_muc.lua	Tue Mar 18 18:56:26 2014 -0400
@@ -213,13 +213,6 @@
 	end, -2)
 end
 
-
-hosts[module.host].send = function(stanza) -- FIXME do a generic fix
-	if stanza.attr.type == "result" or stanza.attr.type == "error" then
-		module:send(stanza);
-	else error("component.send only supports result and error stanzas at the moment"); end
-end
-
 hosts[module:get_host()].muc = { rooms = rooms };
 
 local saved = false;