mod_muc: Set correct 'from' JID when sending the room subject to joiners, fixes a traceback

Tue, 21 Jul 2009 13:19:37 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 21 Jul 2009 13:19:37 +0100
changeset 1564
2437dcd46937
parent 1563
c5078fab0978
child 1565
f1eeb049a0a5

mod_muc: Set correct 'from' JID when sending the room subject to joiners, fixes a traceback

util/muc.lua file | annotate | diff | comparison | revisions
--- a/util/muc.lua	Mon Jul 20 14:59:51 2009 +0100
+++ b/util/muc.lua	Tue Jul 21 13:19:37 2009 +0100
@@ -159,7 +159,7 @@
 		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
 

mercurial