# HG changeset patch # User Waqas Hussain # Date 1289145188 -18000 # Node ID fb7fc154a56a728d715f9842c036776d202c7173 # Parent 675d65036f31d32ce0bfebe4ac1ab715cbc438ad mod_disco: Renamed the 'session' property of the account-disco-info and account-disco-items events to 'origin' for consistency. diff -r 675d65036f31 -r fb7fc154a56a plugins/mod_disco.lua --- a/plugins/mod_disco.lua Sat Nov 06 18:28:15 2010 +0000 +++ b/plugins/mod_disco.lua Sun Nov 07 20:53:08 2010 +0500 @@ -126,7 +126,7 @@ if not stanza.attr.to or is_contact_subscribed(username, module.host, jid_bare(stanza.attr.from)) then local reply = st.reply(stanza):tag('query', {xmlns='http://jabber.org/protocol/disco#info'}); if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account - module:fire_event("account-disco-info", { session = origin, stanza = reply }); + module:fire_event("account-disco-info", { origin = origin, stanza = reply }); origin.send(reply); return true; end @@ -140,7 +140,7 @@ if not stanza.attr.to or is_contact_subscribed(username, module.host, jid_bare(stanza.attr.from)) then local reply = st.reply(stanza):tag('query', {xmlns='http://jabber.org/protocol/disco#items'}); if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account - module:fire_event("account-disco-items", { session = origin, stanza = reply }); + module:fire_event("account-disco-items", { origin = origin, stanza = reply }); origin.send(reply); return true; end