From 0c1c6b5df196443b18e9e0ef2e9ef3de350a7234 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 May 2017 18:43:49 +0300 Subject: Fix wrong checks after removing some server features. --- src/gui/widgets/tabs/chat/partytab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/tabs') diff --git a/src/gui/widgets/tabs/chat/partytab.cpp b/src/gui/widgets/tabs/chat/partytab.cpp index c8fee32ad..366a78241 100644 --- a/src/gui/widgets/tabs/chat/partytab.cpp +++ b/src/gui/widgets/tabs/chat/partytab.cpp @@ -101,7 +101,7 @@ bool PartyTab::handleCommand(const std::string &restrict type, this); } else if (type == "setleader" && - Net::getNetworkType() == ServerType::EATHENA) + Net::getNetworkType() != ServerType::TMWATHENA) { inputManager.executeChatCommand( InputAction::COMMAND_CHANGE_PARTY_LEADER, @@ -135,7 +135,7 @@ void PartyTab::getAutoCompleteCommands(StringVect &names) const names.push_back("/kick "); names.push_back("/item"); names.push_back("/exp"); - if (Net::getNetworkType() == ServerType::EATHENA) + if (Net::getNetworkType() != ServerType::TMWATHENA) names.push_back("/setleader "); } -- cgit v1.2.3-70-g09d2