Skip to content

Commit d50d82e

Browse files
committed
Hide sensitive arguments (/connect)
1 parent c916b56 commit d50d82e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Client/mods/deathmatch/ClientCommands.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,17 @@ bool COMMAND_Executed(const char* szCommand, const char* szArguments, bool bHand
108108

109109
while (iss >> arguments)
110110
{
111-
LuaTable.PushNumber(++i);
112-
LuaTable.PushString(arguments.c_str());
111+
++i;
112+
if (stricmp(szCommand, "connect") == 0 && i == 4)
113+
{
114+
LuaTable.PushNumber(i);
115+
LuaTable.PushString("***");
116+
}
117+
else
118+
{
119+
LuaTable.PushNumber(i);
120+
LuaTable.PushString(arguments.c_str());
121+
}
113122
}
114123
Arguments.PushString(szCommand);
115124
Arguments.PushTable(&LuaTable);

0 commit comments

Comments
 (0)