summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-15 07:52:37 +0100
committerMattes D <github@xoft.cz>2014-03-15 07:52:37 +0100
commit50b53ff3e8e44a52d877f06f62a6edbea7c1b62c (patch)
treeb64f836b83826cbb615df1b7d9619f33f951585d /src
parentAPIDump: Fixed missing return statement. (diff)
parentThe entire unknown command is echoed back to the user on error. (diff)
downloadcuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.tar
cuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.tar.gz
cuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.tar.bz2
cuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.tar.lz
cuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.tar.xz
cuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.tar.zst
cuberite-50b53ff3e8e44a52d877f06f62a6edbea7c1b62c.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/PluginManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index c7df6357e..b9cf160c4 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -248,7 +248,7 @@ bool cPluginManager::CallHookChat(cPlayer * a_Player, AString & a_Message)
{
AStringVector Split(StringSplit(a_Message, " "));
ASSERT(!Split.empty()); // This should not happen - we know there's at least one char in the message so the split needs to be at least one item long
- a_Player->SendMessageInfo(Printf("Unknown command: \"%s\"", Split[0].c_str()));
+ a_Player->SendMessageInfo(Printf("Unknown command: \"%s\"", a_Message.c_str()));
LOGINFO("Player %s issued an unknown command: \"%s\"", a_Player->GetName().c_str(), a_Message.c_str());
return true; // Cancel sending
}