Comparison

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
comparison
equal deleted inserted replaced
393:69229fa1d24f 394:c2e959b60c13
1 local verse = require "verse"; 1 local verse = require "verse";
2 local now = socket.gettime; 2 local now = require"socket".gettime;
3 3
4 local xmlns_sm = "urn:xmpp:sm:2"; 4 local xmlns_sm = "urn:xmpp:sm:2";
5 5
6 function verse.plugins.smacks(stream) 6 function verse.plugins.smacks(stream)
7 -- State for outgoing stanzas 7 -- State for outgoing stanzas