Software /
code /
verse
Comparison
init.lua @ 16:13444ae6e3c4
verse: Fix stream:hook() to pass additional parameters to the underlying hook(), so we don't strip priority
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 30 Nov 2009 15:53:44 +0000 |
parent | 4:0ef21511c7ff |
child | 17:ec6b0b94826c |
comparison
equal
deleted
inserted
replaced
15:be4154ed4e3a | 16:13444ae6e3c4 |
---|---|
66 function stream:event(name, ...) | 66 function stream:event(name, ...) |
67 self:debug("Firing event: "..tostring(name)); | 67 self:debug("Firing event: "..tostring(name)); |
68 return self.events.fire_event(name, ...); | 68 return self.events.fire_event(name, ...); |
69 end | 69 end |
70 | 70 |
71 function stream:hook(name, callback) | 71 function stream:hook(name, ...) |
72 return self.events.add_handler(name, callback); | 72 return self.events.add_handler(name, ...); |
73 end | 73 end |
74 | 74 |
75 function stream:add_plugin(name) | 75 function stream:add_plugin(name) |
76 if require("verse.plugins."..name) then | 76 if require("verse.plugins."..name) then |
77 local ok, err = verse.plugins[name](self); | 77 local ok, err = verse.plugins[name](self); |