# HG changeset patch # User Matthew Wild # Date 1284832661 -3600 # Node ID 9a4a18d111661f052a470883ee5e6c46f4d233af # Parent 6d73aab94365aad738268bb2434c4c56dc03c97d Discard presence of type error/unavailable diff -r 6d73aab94365 -r 9a4a18d11166 capscan.lua --- 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;