summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp/pylon.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmpp/pylon.lua b/xmpp/pylon.lua
index e8f6e9e..930a54c 100644
--- a/xmpp/pylon.lua
+++ b/xmpp/pylon.lua
@@ -94,7 +94,12 @@ function Xmpp.recving(self)
return t(self.sock:read'-2048')
end
for x in xml.stanzae(getmore) do
+ ::next::
self.log:debug(xmlify(x))
+ if type(x) == 'string' then
+ self.log:warn("x was a string: ("..x..")")
+ goto next
+ end
local body = x'body' and x'body'[1]
if x.label == 'message' then
local from_bare_jid, from_nick