We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d802cd commit b273545Copy full SHA for b273545
src/api/EventAPI.cpp
@@ -1365,7 +1365,9 @@ void InitBasicEventListeners() {
1365
bus.emplaceListener<ExecutingCommandEvent>([](ExecutingCommandEvent& ev) {
1366
if (ev.commandContext().getCommandOrigin().getOriginType() == CommandOriginType::DedicatedServer) {
1367
std::string cmd = ev.commandContext().mCommand;
1368
- cmd.erase(0, 1);
+ if (cmd.starts_with("/")) {
1369
+ cmd.erase(0, 1);
1370
+ }
1371
1372
if (!ProcessDebugEngine(cmd)) {
1373
ev.cancel();
0 commit comments