From 36bf685462f371b306f51a29331e7a1d86ce3a91 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 20:22:52 +0300 Subject: add server feature haveItemColors. --- src/net/ea/adminhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/ea') diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 23dacccbf..000f96132 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -26,6 +26,7 @@ #include "net/chathandler.h" #include "net/net.h" +#include "net/serverfeatures.h" #include @@ -74,7 +75,7 @@ void AdminHandler::ipcheckName(const std::string &name) const void AdminHandler::createItems(const int id, const int color, const int amount) const { - if (serverVersion < 1) + if (!Net::getServerFeatures()->haveItemColors()) { Net::getChatHandler()->talk(strprintf("@item %d %d", id, amount), GENERAL_CHANNEL); -- cgit v1.2.3-70-g09d2