mcbot/cmds/xep.lua
changeset 39 237af42156a1
parent 30 e5e20eed6c58
child 66 d9c00a9fe9d5
--- a/mcbot/cmds/xep.lua	Mon Apr 19 10:20:28 2010 +0200
+++ b/mcbot/cmds/xep.lua	Sat Apr 24 10:45:00 2010 +0200
@@ -29,8 +29,10 @@
     if os.difftime(now, xeps_updated_at) < 43200 then return end
     -- Let's get some fresh data
     local xepdata = shcmd(xeplisturl)
-    xeps_updated_at = now
-    parse_xeps(xepdata)
+    if xepdata then
+        xeps_updated_at = now
+        parse_xeps(xepdata)
+    end
 end
 
 -- Deeply inspired by MattJ's riddim bot