Diff

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
line wrap: on
line diff
--- a/init.lua	Mon Nov 30 15:52:52 2009 +0000
+++ b/init.lua	Mon Nov 30 15:53:44 2009 +0000
@@ -68,8 +68,8 @@
 	return self.events.fire_event(name, ...);
 end
 
-function stream:hook(name, callback)
-	return self.events.add_handler(name, callback);
+function stream:hook(name, ...)
+	return self.events.add_handler(name, ...);
 end
 
 function stream:add_plugin(name)