aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index ee6ab3ef7..ddd5d9146 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -1497,18 +1497,7 @@ lua_config_newindex (lua_State *L)
if (lua_type (L, -1) == LUA_TSTRING) {
type_str = lua_tostring (L, -1);
- if (strcmp (type_str, "normal") == 0) {
- type = SYMBOL_TYPE_NORMAL;
- }
- else if (strcmp (type_str, "virtual") == 0) {
- type = SYMBOL_TYPE_VIRTUAL;
- }
- else if (strcmp (type_str, "callback") == 0) {
- type = SYMBOL_TYPE_CALLBACK;
- }
- else {
- msg_info_config ("unknown type: %s", type_str);
- }
+ type = lua_parse_symbol_type (type_str);
}
lua_pop (L, 1);