summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/script_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/layer23/src/mobile/script_lua.c')
-rw-r--r--src/host/layer23/src/mobile/script_lua.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/script_lua.c b/src/host/layer23/src/mobile/script_lua.c
index e63d205a..1b80c485 100644
--- a/src/host/layer23/src/mobile/script_lua.c
+++ b/src/host/layer23/src/mobile/script_lua.c
@@ -389,6 +389,12 @@ static int lua_ms_sms_send_simple(lua_State *L)
return 1;
}
+static int lua_ms_name(lua_State *L)
+{
+ lua_pushstring(L, get_primitive(L)->ms->name);
+ return 1;
+}
+
static const struct luaL_Reg ms_funcs[] = {
{ "imsi", lua_ms_imsi },
{ "imei", lua_ms_imei },
@@ -398,6 +404,7 @@ static const struct luaL_Reg ms_funcs[] = {
{ "start", lua_ms_no_shutdown },
{ "stop", lua_ms_shutdown },
{ "sms_send_simple", lua_ms_sms_send_simple },
+ { "number", lua_ms_name },
{ NULL, NULL },
};