From bbaffabaaff99e55bf8a699b603a732bb887db48 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Thu, 16 Mar 2006 23:16:35 +0000 Subject: [PATCH] we don't need to "ban" the print call any longer svn path=/trunk/; revision=17652 --- plugins/lua/elua.c | 11 ----------- 1 file changed, 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);