Skip to content

Commit

Permalink
Add support for legacy command macros
Browse files Browse the repository at this point in the history
Still used in ddnet++ for rcon commands
  • Loading branch information
ChillerDragon committed Nov 21, 2024
1 parent 4fd997b commit f9df22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/include/tw_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function tw_configs() {
function tw_commands() {
local flag="$1"
local line
grep -roh "Register(\".*CFGFLAG_$flag" src/ | LC_ALL=C sort | while IFS= read -r line
grep -Eroh "(Register|CONSOLE_COMMAND)\(\".*CFGFLAG_$flag" src/ | LC_ALL=C sort | while IFS= read -r line
do
line="$(echo "$line" | cut -d'(' -f2 | cut -d'"' -f2)"
echo "$line"
Expand Down

0 comments on commit f9df22a

Please sign in to comment.