Software /
code /
verse
Comparison
plugins/smacks.lua @ 408:635cbd979d7b
plugins.smacks: Update to sm:3 namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Apr 2017 19:37:56 +0200 |
parent | 395:e86144a4eaa1 |
child | 445:b119dc4d8bc2 |
comparison
equal
deleted
inserted
replaced
407:c99db5172309 | 408:635cbd979d7b |
---|---|
1 local verse = require "verse"; | 1 local verse = require "verse"; |
2 local now = require"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:3"; |
5 | 5 |
6 function verse.plugins.smacks(stream) | 6 function verse.plugins.smacks(stream) |
7 -- State for outgoing stanzas | 7 -- State for outgoing stanzas |
8 local outgoing_queue = {}; | 8 local outgoing_queue = {}; |
9 local last_ack = 0; | 9 local last_ack = 0; |