Diff

plugins/smacks.lua @ 394:c2e959b60c13

plugins.smacks: explicitly import luasocket which stops setting globals in new versions
author Kim Alvefur <zash@zash.se>
date Thu, 03 Sep 2015 21:46:57 +0200
parent 380:0891b4e27766
child 395:e86144a4eaa1
line wrap: on
line diff
--- a/plugins/smacks.lua	Thu Aug 27 14:22:25 2015 +0200
+++ b/plugins/smacks.lua	Thu Sep 03 21:46:57 2015 +0200
@@ -1,5 +1,5 @@
 local verse = require "verse";
-local now = socket.gettime;
+local now = require"socket".gettime;
 
 local xmlns_sm = "urn:xmpp:sm:2";