diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-10-08 20:38:05 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-10-08 20:38:05 +0500 |
commit | 99d8d3327b98e0a15322783abc1287e5300297ac (patch) | |
tree | 01b1196b89f84bee182aa23cde106c5070ade72f /plugins/mod_roster.lua | |
parent | 2afc5cdef025c308f74adf824e3fe033ae731587 (diff) | |
download | prosody-99d8d3327b98e0a15322783abc1287e5300297ac.tar.gz prosody-99d8d3327b98e0a15322783abc1287e5300297ac.zip |
Removed: Unnecessary check in mod_roster. session.roster is guaranteed to be available for "c2s" session type.
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r-- | plugins/mod_roster.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 8b4a3a0a..962c6c70 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -5,14 +5,6 @@ local send = require "core.sessionmanager".send_to_session add_iq_handler("c2s", "jabber:iq:roster", function (session, stanza) if stanza.attr.type == "get" then - session.roster = session.roster or rostermanager.getroster(session.username, session.host); - if session.roster == false then - send(session, st.reply(stanza) - :tag("error", { type = "wait" }) - :tag("internal-server-error", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"})); - return true; - else session.roster = session.roster or {}; - end local roster = st.reply(stanza) :query("jabber:iq:roster"); for jid in pairs(session.roster) do |