From ce68819220287bc66529535af10aa01235ead738 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 3 Jun 2011 21:55:21 +0000
Subject: [PATCH] Ctrl+M shows the game log or the chat log depending on which
 window is active

git-svn-id: http://svn.net-core.org/repos/t-engine4@3577 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Game.lua | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua
index 6a7e1409bc..50e98731f2 100644
--- a/game/modules/tome/class/Game.lua
+++ b/game/modules/tome/class/Game.lua
@@ -1146,7 +1146,11 @@ function _M:setupCommands()
 		end,
 
 		SHOW_MESSAGE_LOG = function()
-			self.logdisplay:showLogDialog(nil, 0.6)
+			if not self.show_userchat then
+				self.logdisplay:showLogDialog(nil, 0.6)
+			else
+				profile.chat:showLogDialog(nil, 0.6)
+			end
 		end,
 
 		-- Show time
-- 
GitLab