Sat, 18 Sep 2010 18:57:41 +0100
Discard presence of type error/unavailable
capscan.lua | file | annotate | diff | comparison | revisions |
--- a/capscan.lua Sat Sep 18 18:36:34 2010 +0100 +++ b/capscan.lua Sat Sep 18 18:57:41 2010 +0100 @@ -33,7 +33,7 @@ conn:hook("ready", function () conn:hook("presence", function (presence) - if contacts[presence.attr.from] then return; end; + if contacts[presence.attr.from] or presence.attr.type then return; end; local contact = { jid = presence.attr.from }; contacts[contact.jid] = contact;