Software /
code /
prosody
Changeset
1058:63b7a81d45eb
Automated merge with http://waqas.ath.cx:8000/
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 21:06:51 +0100 |
parents | 1057:2677f5a4e66b (diff) 1054:084d265b37cf (current diff) |
children | 1066:0cb325970a50 |
files | |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_muc.lua Thu Apr 23 21:06:08 2009 +0100 +++ b/plugins/mod_muc.lua Thu Apr 23 21:06:51 2009 +0100 @@ -23,7 +23,7 @@ end local muc_domain = module:get_host(); -local muc_name = "MUCMUCMUC!!!"; +local muc_name = "Chatrooms"; local history_length = 20; -- room_name -> room @@ -276,6 +276,7 @@ log("debug", "%s joining as %s", from, to); local data; if not rooms:get(room) and not rooms_info:get(room) then -- new room + rooms_info:set(room, 'name', (jid_split(room))); data = {affiliation='owner', role='moderator', jid=from, sessions={[from]=get_filtered_presence(stanza)}}; end if not data then -- new occupant
--- a/plugins/mod_presence.lua Thu Apr 23 21:06:08 2009 +0100 +++ b/plugins/mod_presence.lua Thu Apr 23 21:06:51 2009 +0100 @@ -65,7 +65,7 @@ end local node, host = jid_split(stanza.attr.from); for _, res in pairs(hosts[host].sessions[node].sessions) do -- broadcast to all resources - if res ~= origin and res.full_jid then -- to resource. FIXME is res.full_jid the correct check? Maybe it should be res.presence + if res ~= origin and res.presence then -- to resource stanza.attr.to = res.full_jid; core_route_stanza(origin, stanza); end