Software /
code /
prosody-modules
Diff
mod_blocking/mod_blocking.lua @ 175:92a72435721a
mod_blocking: Fixed a nil global access.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 14 Jun 2010 01:04:58 +0500 |
parent | 174:d40982d130f0 |
child | 176:26bb69a57749 |
line wrap: on
line diff
--- a/mod_blocking/mod_blocking.lua Sun Jun 13 19:51:15 2010 +0100 +++ b/mod_blocking/mod_blocking.lua Mon Jun 14 01:04:58 2010 +0500 @@ -112,7 +112,7 @@ session.send(st.reply(stanza)); end elseif stanza.attr.type == "get" and stanza.tags[1].name == "blocklist" then - local reply = st.reply(stanza):tag("blocklist", { xmlns = xmlns_block }); + local reply = st.reply(stanza):tag("blocklist", { xmlns = xmlns_blocking }); local blocked_jids = get_blocked_jids(username, host); for _, jid in ipairs(blocked_jids) do reply:tag("item", { jid = jid }):up();