# HG changeset patch # User Kim Alvefur # Date 1391711233 -3600 # Node ID 99748c89edd45d330029269e2a90072bc6ef7fec # Parent a7d6c6d2c7b5ac3c358df9c20bcb52c26e17172b mod_manifesto: Fix traceback when user disconnects before the timer (fixes #48) diff -r a7d6c6d2c7b5 -r 99748c89edd4 mod_manifesto/mod_manifesto.lua --- a/mod_manifesto/mod_manifesto.lua Tue Feb 04 12:48:33 2014 +0100 +++ b/mod_manifesto/mod_manifesto.lua Thu Feb 06 19:27:13 2014 +0100 @@ -55,6 +55,7 @@ end timer.add_task(15, function () + if session.type ~= "c2s" then return end -- user quit already local bad_contacts, bad_hosts = {}, {}; for contact_jid, item in pairs(session.roster or {}) do local _, contact_host = jid_split(contact_jid);