modulemanager: Really fix call_module_method to work properly

Thu, 29 Jan 2009 02:01:09 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 29 Jan 2009 02:01:09 +0000
changeset 748
172c43d735e9
parent 747
40837f3422ab
child 749
1359492f45d7

modulemanager: Really fix call_module_method to work properly

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- 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";

mercurial