diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-12-29 12:24:43 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-12-29 12:24:43 +0000 |
commit | 8edc1eccac63fbe2fcb7d7e3eab76cb8646df9a4 (patch) | |
tree | e18163715804d1eddedc9d4f1fb60a221a535fe6 /examples | |
parent | yet another trailing whitespace deletion (diff) |
requester gets now stored with commands
response and timeout handlers get called now
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@91 ac14a137-c7f1-4531-abe0-07747231d213
Diffstat (limited to 'examples')
-rw-r--r-- | examples/basic_mode.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic_mode.lua b/examples/basic_mode.lua index 97cccd1..9f9b8ad 100644 --- a/examples/basic_mode.lua +++ b/examples/basic_mode.lua @@ -1,8 +1,8 @@ local commands = { - ["%w+%s*\n"] = function(match) + ["%w+%s*\n"] = function(match, requester) command_queue:enqueue(string.match(match , "(%w+)%s*")) end, - [".*\n"] = function(match) end + [".*\n"] = function(match, requester) end } local responses = { |