summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-14 14:01:45 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-14 14:01:45 +0100
commit692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c (patch)
tree2853a32cdcb75006d49907b9da98d03b640991f5 /src/Bindings/ManualBindings.cpp
parentFixed comma (diff)
parentMerge pull request #793 from xdot/master (diff)
downloadcuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.tar
cuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.tar.gz
cuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.tar.bz2
cuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.tar.lz
cuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.tar.xz
cuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.tar.zst
cuberite-692cf5bb70dfc63f7e1b9a67e29c9ede22d9359c.zip
Diffstat (limited to 'src/Bindings/ManualBindings.cpp')
-rw-r--r--src/Bindings/ManualBindings.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index a5247bbe6..462ef3682 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -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;
}