From d1dbf42aee628e0d3566b92c6e967c6667ac3142 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Aug 2015 01:16:05 +0300 Subject: Dont use item palettes in createitems command. --- src/net/ea/adminhandler.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/net/ea/adminhandler.cpp') diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 2cc98acb0..455f9acb2 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -75,19 +75,11 @@ void AdminHandler::ipcheckName(const std::string &name) const } void AdminHandler::createItems(const int id, - const ItemColor color, + const ItemColor color A_UNUSED, const int amount) const { - if (!serverFeatures->haveItemColors()) - { - chatHandler->talk(strprintf("@item %d %d", - id, amount), GENERAL_CHANNEL); - } - else - { - chatHandler->talk(strprintf("@item %d %d %d", - id, toInt(color, int), amount), GENERAL_CHANNEL); - } + chatHandler->talk(strprintf("@item %d %d", id, amount), + GENERAL_CHANNEL); } void AdminHandler::processKickAck(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50