aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-21 13:19:37 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-21 13:19:37 +0100
commit0372326fb1dd34e49ef2c614ef9d6a9e048328da (patch)
tree23f99a7ea2f235ef4b87da7a77b004b823e44965 /util
parentd2a74cbb8c949c2b28cdd33b7e1323e38e9177a8 (diff)
downloadprosody-0372326fb1dd34e49ef2c614ef9d6a9e048328da.tar.gz
prosody-0372326fb1dd34e49ef2c614ef9d6a9e048328da.zip
mod_muc: Set correct 'from' JID when sending the room subject to joiners, fixes a traceback
Diffstat (limited to 'util')
-rw-r--r--util/muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/muc.lua b/util/muc.lua
index b0fc8c84..b3673f63 100644
--- a/util/muc.lua
+++ b/util/muc.lua
@@ -159,7 +159,7 @@ local function room_send_history(room, to)
end
end
if room._data['subject'] then
- room:route_stanza(st.message({type='groupchat', from=room, to=to}):tag("subject"):text(room._data['subject']));
+ room:route_stanza(st.message({type='groupchat', from=room.jid, to=to}):tag("subject"):text(room._data['subject']));
end
end