cPluginManager:Bind[Console]Command returns true on success.

Fixes #801.
This commit is contained in:
madmaxoft
2014-03-14 11:18:14 +01:00
parent d545be9614
commit bba090ebdd
2 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -1497,7 +1497,8 @@ static int tolua_cPluginManager_BindCommand(lua_State * L)
}
Plugin->BindCommand(Command, FnRef);
return 0;
lua_pushboolean(L, true);
return 1;
}
@@ -1561,7 +1562,8 @@ static int tolua_cPluginManager_BindConsoleCommand(lua_State * L)
}
Plugin->BindConsoleCommand(Command, FnRef);
return 0;
lua_pushboolean(L, true);
return 1;
}