examples/lm/tune.lua
author Myhailo Danylenko <isbear@ukrpost.net>
Mon, 27 Apr 2009 12:51:53 +0300
changeset 71 eb6edac301ac
parent 68 742878c74b8e
permissions -rw-r--r--
Fixes to tune and register, change fifo perm


-- USER TUNE (XEP-0118)

-- library

local pep = require 'lm.pep'

--

local F = { }

function F.publish ( conn, success, fail, data )
	local item = { xmlns = 'http://jabber.org/protocol/tune' }
	if data then
		for key, value in pairs ( data ) do
			item[key] = { value }
		end
	end
	pep.publish ( conn, 'http://jabber.org/protocol/tune', { tune = item }, success, fail )
end

return F

-- vim: se ts=4: --