summaryrefslogtreecommitdiffstats
path: root/lua/mvc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mvc.lua')
-rwxr-xr-xlua/mvc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua
index ca5bc8e..bd69051 100755
--- a/lua/mvc.lua
+++ b/lua/mvc.lua
@@ -124,13 +124,14 @@ destroy = function (self)
end
-- This is a sample front controller/dispatch.
-dispatch = function (self, userprefix, userctlr, useraction)
+dispatch = function (self, userprefix, userctlr, useraction, clientdata)
local controller = nil
local success, err = xpcall ( function ()
self.conf.prefix = userprefix or "/"
self.conf.controller = userctlr or ""
self.conf.action = useraction or ""
+ if clientdata then self.clientdata = clientdata end
-- If they didn't provide a controller, and a default was specified
-- use it