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/gui/popups/popupmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index bcc0b92ef..b92d572fb 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1089,7 +1089,7 @@ void PopupMenu::handleLink(const std::string &link, { if (mItem) { - if (serverVersion > 0) + if (Net::getServerFeatures()->haveItemColors()) { chatWindow->addItemText(mItem->getInfo().getName( mItem->getColor())); @@ -1106,7 +1106,7 @@ void PopupMenu::handleLink(const std::string &link, if (item) { - if (serverVersion > 0) + if (Net::getServerFeatures()->haveItemColors()) { chatWindow->addItemText(item->getInfo().getName( item->getColor())); -- cgit v1.2.3-70-g09d2