diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-03-16 23:16:35 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-03-16 23:16:35 +0000 |
commit | bbaffabaaff99e55bf8a699b603a732bb887db48 (patch) | |
tree | 9501e7395756f1a538057de7d6d0697dae38e5de /plugins/lua | |
parent | 4f48d73d9001f8606ca939686c6cdfb42060c3c8 (diff) |
we don't need to "ban" the print call any longer
svn path=/trunk/; revision=17652
Diffstat (limited to 'plugins/lua')
-rw-r--r-- | plugins/lua/elua.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/plugins/lua/elua.c b/plugins/lua/elua.c index b22e965279..f39d563812 100644 --- a/plugins/lua/elua.c +++ b/plugins/lua/elua.c @@ -49,12 +49,6 @@ static int elua_not_register_menu(lua_State* L) { return 0; } -static int elua_not_print(lua_State* L) { - luaL_error(L,"do not use print use either a TextWindow or critical(),\n" - "warn(), message(), info() or debug()"); - return 0; -} - void dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) { lua_pinfo = pinfo; lua_tvb = tvb; @@ -239,11 +233,6 @@ void register_lua(void) { lua_atpanic(L,elua_panic); - /* print has been changed to yield an error if used */ - lua_pushstring(L, "print"); - lua_pushcfunction(L, elua_not_print); - lua_settable(L, LUA_GLOBALSINDEX); - /* the init_routines table (accessible by the user) */ lua_pushstring(L, ELUA_INIT_ROUTINES); lua_newtable (L); |