diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 00:37:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 00:37:40 +0300 |
commit | 79c393ec76891a806a69aad6782338875368e535 (patch) | |
tree | c55429deb61f25fb6acffdcd2bce40bbccbd936e /src/gui/widgets/tabs | |
parent | 00509dd2dc2d0eed4b1ccc0788ab5b721deb7228 (diff) | |
download | manaplus-79c393ec76891a806a69aad6782338875368e535.tar.gz manaplus-79c393ec76891a806a69aad6782338875368e535.tar.bz2 manaplus-79c393ec76891a806a69aad6782338875368e535.tar.xz manaplus-79c393ec76891a806a69aad6782338875368e535.zip |
Remove ServerFeatures haveChangePartyLeader because it depend only on server type.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r-- | src/gui/widgets/tabs/chat/partytab.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/chat/partytab.cpp b/src/gui/widgets/tabs/chat/partytab.cpp index 6602fc4b2..463cd81c0 100644 --- a/src/gui/widgets/tabs/chat/partytab.cpp +++ b/src/gui/widgets/tabs/chat/partytab.cpp @@ -34,6 +34,7 @@ #include "input/inputmanager.h" +#include "net/net.h" #include "net/partyhandler.h" #include "net/serverfeatures.h" @@ -100,8 +101,8 @@ bool PartyTab::handleCommand(const std::string &restrict type, args, this); } - else if (type == "setleader" - && serverFeatures->haveChangePartyLeader()) + else if (type == "setleader" && + Net::getNetworkType() == ServerType::EATHENA) { inputManager.executeChatCommand( InputAction::COMMAND_CHANGE_PARTY_LEADER, @@ -135,7 +136,7 @@ void PartyTab::getAutoCompleteCommands(StringVect &names) const names.push_back("/kick "); names.push_back("/item"); names.push_back("/exp"); - if (serverFeatures->haveChangePartyLeader()) + if (Net::getNetworkType() == ServerType::EATHENA) names.push_back("/setleader "); } |