diff options
Diffstat (limited to 'src/net/ea/gui')
-rw-r--r-- | src/net/ea/gui/partytab.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp index 7a76f7ba9..96b52b5e1 100644 --- a/src/net/ea/gui/partytab.cpp +++ b/src/net/ea/gui/partytab.cpp @@ -32,6 +32,7 @@ #include "net/net.h" #include "net/partyhandler.h" +#include "net/serverfeatures.h" #include "gui/windows/chatwindow.h" @@ -195,6 +196,11 @@ bool PartyTab::handleCommand(const std::string &restrict type, break; } } + else if (type == "setleader" + && Net::getServerFeatures()->haveChangePartyLeader()) + { + Net::getPartyHandler()->changeLeader(args); + } else { return false; @@ -222,6 +228,8 @@ void PartyTab::getAutoCompleteCommands(StringVect &names) const names.push_back("/kick "); names.push_back("/item"); names.push_back("/exp"); + if (Net::getServerFeatures()->haveChangePartyLeader()) + names.push_back("/setleader "); } void PartyTab::saveToLogFile(const std::string &msg) const |