modulemanager: Really fix call_module_method to work properly
authorMatthew Wild <mwild1@gmail.com>
Thu, 29 Jan 2009 02:01:09 +0000 (02:01 +0000)
committerMatthew Wild <mwild1@gmail.com>
Thu, 29 Jan 2009 02:01:09 +0000 (02:01 +0000)
core/modulemanager.lua

index b0b2b636b5ad4323b9efafb627b60fae3c0b4feb..8292eaa5d0d4147ce92cab7cad93fb1aecf3b981 100644 (file)
@@ -235,7 +235,7 @@ end
 
 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";