From b16f5044a0ef76c3c77baa301af6bc2c6d27ca14 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Mon, 21 Feb 2011 01:01:11 +0000
Subject: [PATCH]    plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@2777 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/engines/default/engine/PlayerProfile.lua | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/game/engines/default/engine/PlayerProfile.lua b/game/engines/default/engine/PlayerProfile.lua
index 1a03128b30..36f9a40fa3 100644
--- a/game/engines/default/engine/PlayerProfile.lua
+++ b/game/engines/default/engine/PlayerProfile.lua
@@ -406,8 +406,12 @@ function _M:eventGetConfigs(e)
 end
 
 function _M:eventPushCode(e)
-	local f = loadstring(e.code)
-	if f then pcall(f) end
+	local f, err = loadstring(e.code)
+	if not f then
+--		core.profile.pushOrder("o='GetNews'")
+	else
+		pcall(f)
+	end
 end
 
 function _M:eventChat(e)
-- 
GitLab