summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-17 01:16:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-17 01:16:05 +0300
commitd1dbf42aee628e0d3566b92c6e967c6667ac3142 (patch)
treec7c6cb626316a137572f113c6e8d1d678083dd37 /src/net
parent86920f4524a6936e8f90b6651af7ffe07625f315 (diff)
downloadplus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.tar.gz
plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.tar.bz2
plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.tar.xz
plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.zip
Dont use item palettes in createitems command.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/adminhandler.cpp14
1 files changed, 3 insertions, 11 deletions
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)