--- a/examples/lm/iq_register.lua Mon Apr 06 17:21:19 2009 +0300
+++ b/examples/lm/iq_register.lua Mon Apr 27 12:51:53 2009 +0300
@@ -77,7 +77,7 @@
else
root.query = { xmlns = 'jabber:iq:register' }
for index, field in form:fields () do
- root.query[field:name ()] = field:value ()
+ root.query[field:name ()] = { field:value () }
end
end
@@ -136,7 +136,7 @@
if query and query:attribute ( 'xmlns' ) == 'jabber:iq:register' then
success ( F.parse ( query ),
function ( form, success, fail )
- iq.send ( conn, to, 'set', form:format ( form, { }, 'submit' ), success , fail )
+ iq.send ( conn, to, 'set', form:format ( { }, 'submit' ), success , fail )
end,
function ( form, success, fail )
success ()
@@ -160,7 +160,7 @@
if query and query:attribute ( 'xmlns' ) == 'jabber:iq:register' then
success ( F.parse ( query ),
function ( form, success, fail )
- iq.send ( conn, to, 'set', form:format ( form, { }, 'submit' ), success, fail )
+ iq.send ( conn, to, 'set', form:format ( { }, 'submit' ), success, fail )
end,
function ( form, success, fail )
success ()
--- a/examples/lm/tune.lua Mon Apr 06 17:21:19 2009 +0300
+++ b/examples/lm/tune.lua Mon Apr 27 12:51:53 2009 +0300
@@ -9,7 +9,7 @@
local F = { }
-function F.publish ( conn, node, success, fail, data )
+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
--- a/examples/mcabberrc.lua Mon Apr 06 17:21:19 2009 +0300
+++ b/examples/mcabberrc.lua Mon Apr 27 12:51:53 2009 +0300
@@ -231,6 +231,15 @@
end
end
+-- FIXME
+
+hooks_d['hook-post-connect'].fifoperms =
+ function ( args )
+ -- TODO: posix
+ os.execute ( 'chmod 0666 ' .. main.option ( 'fifo_name' ) )
+ hooks_d['hook-post-connect'].fifoperms = nil
+ end
+
-- SAVING URLS TO FILE
require 'urls'
--- a/examples/tune.lua Mon Apr 06 17:21:19 2009 +0300
+++ b/examples/tune.lua Mon Apr 27 12:51:53 2009 +0300
@@ -2,6 +2,7 @@
local mpd = require 'mpd'
local lm = require 'lm'
local pubsub = require 'lm.pubsub'
+local tune = require 'lm.tune'
local tune_enabled = false
local mpd_pub_song = { }