summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-12-29 12:24:43 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-12-29 12:24:43 +0000
commit8edc1eccac63fbe2fcb7d7e3eab76cb8646df9a4 (patch)
treee18163715804d1eddedc9d4f1fb60a221a535fe6 /examples
parentyet 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.lua4
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 = {