Skip to content

Commit

Permalink
cmdinterface: Support "status" command to trigger room status json
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 13, 2024
1 parent b5f2272 commit 104e4f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/stdinreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,12 @@ int cmdInputThreadFunc(void *)
}
});
}
else if(!strncmpl(line, "status"))
{
wzAsyncExecOnMainThread([] {
wz_command_interface_output_room_status_json();
});
}
else if(!strncmpl(line, "shutdown now"))
{
inexit = true;
Expand Down

0 comments on commit 104e4f1

Please sign in to comment.