From 085bbbe4b43a8abb3360055422cf5b16cbac06f7 Mon Sep 17 00:00:00 2001 From: Liu Peng Date: Fri, 29 Aug 2014 06:08:33 -0400 Subject: [PATCH] Update luactor.lua --- luactor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luactor.lua b/luactor.lua index c3b0d2b..00d0281 100644 --- a/luactor.lua +++ b/luactor.lua @@ -283,7 +283,7 @@ actor.wait = function (handlers) and handlers[command] ~= nil -- XXX:how to make sure handlers[command] is function like? then - handlers[command](message, sender) + return handlers[command](message, sender) else -- XXX: should we raise an error here? or, we can return a -- command `__unknown` or `__index` as a *meta method*.