summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-15 14:47:56 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-15 14:47:56 +0100
commitfbd4d53dacdf93f51eccc53df22831aec6a5b40a (patch)
tree8187e7749f2c8331d2c096b755bf859cd6ee8c21 /src/Bindings/PluginManager.cpp
parentPatched tolua to emit range checks for enums (diff)
parentDebuggers: Added a test for WE selection API. (diff)
downloadcuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.gz
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.bz2
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.lz
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.xz
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.zst
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.zip
Diffstat (limited to 'src/Bindings/PluginManager.cpp')
-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
}