summaryrefslogtreecommitdiff
path: root/src/net/ea/adminhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-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)