# HG changeset patch # User Matthew Wild # Date 1390508834 0 # Node ID 9700c89f7bf67cc27862743f46f1192e0a1069e9 # Parent f1a0a0754b87137c876a413a6dcea7d2f50e32e9 mod_manifesto: Fix traceback when user doesn't have a roster (?) diff -r f1a0a0754b87 -r 9700c89f7bf6 mod_manifesto/mod_manifesto.lua --- a/mod_manifesto/mod_manifesto.lua Thu Jan 23 21:02:38 2014 +0100 +++ b/mod_manifesto/mod_manifesto.lua Thu Jan 23 20:27:14 2014 +0000 @@ -56,7 +56,7 @@ timer.add_task(15, function () local bad_contacts, bad_hosts = {}, {}; - for contact_jid, item in pairs(session.roster) do + for contact_jid, item in pairs(session.roster or {}) do local _, contact_host = jid_split(contact_jid); local bad = false; local remote_host_session = host_session.s2sout[contact_host];