aboutsummaryrefslogtreecommitdiff
path: root/src/scriptapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r--src/scriptapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h
index 9bdf99c62..e6570e764 100644
--- a/src/scriptapi.h
+++ b/src/scriptapi.h
@@ -37,6 +37,10 @@ void scriptapi_add_environment(lua_State *L, ServerEnvironment *env);
void scriptapi_add_object_reference(lua_State *L, ServerActiveObject *cobj);
void scriptapi_rm_object_reference(lua_State *L, ServerActiveObject *cobj);
+// Returns true if script handled message
+bool scriptapi_on_chat_message(lua_State *L, const std::string &name,
+ const std::string &message);
+
/* environment */
// On environment step
void scriptapi_environment_step(lua_State *L, float dtime);