summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-04-11 01:02:15 +0200
committerFedja Beader <fedja@protonmail.ch>2025-04-11 01:02:35 +0200
commitada4898e1e5f9d8c57d7ebacd615db7e645d04fb (patch)
tree5b3e6623d864518ac7cc8f33b520ccabe274f2ce
parentc15aa3c75e7f362d90d08ef4f96f43347420121f (diff)
downloadmanaplus-command_not_found_channel_report.tar.gz
manaplus-command_not_found_channel_report.tar.bz2
manaplus-command_not_found_channel_report.tar.xz
manaplus-command_not_found_channel_report.zip
-rw-r--r--src/input/inputmanager.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 02c541900..1f8ed453d 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -986,14 +986,16 @@ bool InputManager::executeChatCommand(const std::string &restrict cmd,
}
else
{
- if (tab == nullptr)
- reportAlways("Unknown chat command: /%s %s",
- cmd.c_str(), args.c_str())
- else
+#ifndef DYECMD
+ if (tab != nullptr)
tab->chatLog(strprintf("Unknown command: '%s'", cmd.c_str()),
ChatMsgType::BY_PLAYER,
IgnoreRecord_false,
TryRemoveColors_true);
+ else
+#endif // DYECMD
+ reportAlways("Unknown chat command: /%s %s",
+ cmd.c_str(), args.c_str())
}
return false;
}