Changeset

748:172c43d735e9

modulemanager: Really fix call_module_method to work properly
author Matthew Wild <mwild1@gmail.com>
date Thu, 29 Jan 2009 02:01:09 +0000
parents 747:40837f3422ab
children 749:1359492f45d7
files core/modulemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Thu Jan 29 01:58:11 2009 +0000
+++ b/core/modulemanager.lua	Thu Jan 29 02:01:09 2009 +0000
@@ -235,7 +235,7 @@
 
 function call_module_method(module, method, ...)
 	if module_has_method(module, method) then	
-		local f = module.module[func];
+		local f = module.module[method];
 		return pcall(f, ...);
 	else
 		return false, "no-such-method";