diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 20:22:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 20:22:52 +0300 |
commit | 36bf685462f371b306f51a29331e7a1d86ce3a91 (patch) | |
tree | 79ef1ffdb59524f9fec7ce2dcb3e1cf7f490c70f /src/net/ea/adminhandler.cpp | |
parent | d54c371ad9d3c8a019d7d6bdc0262cd352a06ae5 (diff) | |
download | manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.gz manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.bz2 manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.xz manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.zip |
add server feature haveItemColors.
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r-- | src/net/ea/adminhandler.cpp | 3 |
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); |