summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/adminhandler.cpp3
1 files changed, 2 insertions, 1 deletions
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 <string>
@@ -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);