core.s2smanager, xmppserver_listener: Move the responsibility of setting session...
[prosody.git] / plugins / mod_actions_http.lua
index 327bd6708701b8737a85a73faba88031ab4132fc..c60697938ac4d9e798ce120fbf040ac989272f3d 100644 (file)
@@ -1,3 +1,11 @@
+-- Prosody IM
+-- Copyright (C) 2008-2009 Matthew Wild
+-- Copyright (C) 2008-2009 Waqas Hussain
+-- 
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
 
 local httpserver = require "net.httpserver";
 local t_concat, t_insert = table.concat, table.insert;
@@ -53,6 +61,8 @@ local function handle_request(method, body, request)
                        t_insert(s, " = ");
                        if type(v) == "function" then
                                t_insert(s, "action")
+                       elseif type(v) == "table" then
+                               t_insert(s, "list");
                        else
                                t_insert(s, tostring(v));
                        end