# HG changeset patch
# User daurnimator <quae@daurnimator.com>
# Date 1395251822 14400
# Node ID 055efbb6d10cda8552af30a5507e4a048d75749a
# Parent  f535f7de44b6f119f0b1fe1101ba04e565329df6
plugins/muc/muc.lib: Use module.host where `muc_domain` was previously

diff -r f535f7de44b6 -r 055efbb6d10c plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Wed Mar 19 13:56:14 2014 -0400
+++ b/plugins/muc/muc.lib.lua	Wed Mar 19 13:57:02 2014 -0400
@@ -25,7 +25,6 @@
 local base64 = require "util.encodings".base64;
 local md5 = require "util.hashes".md5;
 
-local muc_domain = nil; --module:get_host();
 local default_history_length, max_history_length = 20, math.huge;
 
 ------------
@@ -118,8 +117,8 @@
 	stanza = st.clone(stanza);
 	stanza.attr.to = "";
 	local stamp = datetime.datetime();
-	stanza:tag("delay", {xmlns = "urn:xmpp:delay", from = muc_domain, stamp = stamp}):up(); -- XEP-0203
-	stanza:tag("x", {xmlns = "jabber:x:delay", from = muc_domain, stamp = datetime.legacy()}):up(); -- XEP-0091 (deprecated)
+	stanza:tag("delay", {xmlns = "urn:xmpp:delay", from = module.host, stamp = stamp}):up(); -- XEP-0203
+	stanza:tag("x", {xmlns = "jabber:x:delay", from = module.host, stamp = datetime.legacy()}):up(); -- XEP-0091 (deprecated)
 	local entry = { stanza = stanza, stamp = stamp };
 	t_insert(history, entry);
 	while #history > (self._data.history_length or default_history_length) do t_remove(history, 1) end