Software /
code /
verse
Diff
plugins/jingle_ibb.lua @ 255:be126fe7c4e7
Merge with MattJ & mva
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Dec 2011 19:46:47 +0100 |
parent | 250:a5ac643a7fd6 |
child | 284:c78d1780f1d2 |
line wrap: on
line diff
--- a/plugins/jingle_ibb.lua Mon Nov 28 17:16:04 2011 +0100 +++ b/plugins/jingle_ibb.lua Sat Dec 03 19:46:47 2011 +0100 @@ -1,10 +1,12 @@ +local verse = require "verse"; +local base64 = require "util.encodings".base64; +local uuid_generate = require "util.uuid".generate; + local xmlns_jingle_ibb = "urn:xmpp:jingle:transports:ibb:1"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; -local base64 = require "util.encodings".base64; assert(base64.encode("This is a test.") == "VGhpcyBpcyBhIHRlc3Qu", "Base64 encoding failed"); assert(base64.decode("VGhpcyBpcyBhIHRlc3Qu") == "This is a test.", "Base64 decoding failed"); local t_concat = table.concat -local uuid_generate = require "util.uuid".generate; local ibb_conn = {}; local ibb_conn_mt = { __index = ibb_conn };