diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2010-10-09 20:05:52 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-11 00:18:04 +0200 |
| commit | 00c142103455d3d87d43f31df04213db4d92571b (patch) | |
| tree | e419fa51e99ebf50bd266d64db25e3da703fc7df /src/game | |
| parent | bed7b64457c3c99a73088efdf7f31178e70c57dc (diff) | |
| download | zcatch-00c142103455d3d87d43f31df04213db4d92571b.tar.gz zcatch-00c142103455d3d87d43f31df04213db4d92571b.zip | |
fixed so the rcon password is not in the history (fixes #170)
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/components/console.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; |