From 00c142103455d3d87d43f31df04213db4d92571b Mon Sep 17 00:00:00 2001 From: Choupom Date: Sat, 9 Oct 2010 20:05:52 +0200 Subject: fixed so the rcon password is not in the history (fixes #170) --- src/game/client/components/console.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/game/client/components/console.cpp') diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 5fa328dd..9808a99f 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -100,8 +100,11 @@ void CGameConsole::CInstance::OnInput(IInput::CEvent Event) { if(m_Input.GetString()[0]) { - char *pEntry = m_History.Allocate(m_Input.GetLength()+1); - mem_copy(pEntry, m_Input.GetString(), m_Input.GetLength()+1); + if(m_Type != 1 || m_pGameConsole->Client()->RconAuthed()) + { + char *pEntry = m_History.Allocate(m_Input.GetLength()+1); + mem_copy(pEntry, m_Input.GetString(), m_Input.GetLength()+1); + } ExecuteLine(m_Input.GetString()); m_Input.Clear(); m_pHistoryEntry = 0x0; -- cgit 1.4.1