Skip to content

Commit

Permalink
Add ShowBindHost command.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf committed Jul 18, 2012
1 parent 38b9525 commit 80acaa7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ClientCommand.cpp
Expand Up @@ -1083,6 +1083,11 @@ void CClient::UserCommand(CString& sLine) {
} else if (sCommand.Equals("CLEARUSERBINDHOST") && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { } else if (sCommand.Equals("CLEARUSERBINDHOST") && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) {
m_pUser->SetBindHost(""); m_pUser->SetBindHost("");
PutStatus("Bind host cleared"); PutStatus("Bind host cleared");
} else if (sCommand.Equals("SHOWBINDHOST")) {
PutStatus("This user's default bind host " + (m_pUser->GetBindHost().empty() ? "not set" : "is [" + m_pUser->GetBindHost() + "]"));
if (m_pNetwork) {
PutStatus("This network's bind host " + (m_pNetwork->GetBindHost().empty() ? "not set" : "is [" + m_pNetwork->GetBindHost() + "]"));
}
} else if (sCommand.Equals("PLAYBUFFER")) { } else if (sCommand.Equals("PLAYBUFFER")) {
if (!m_pNetwork) { if (!m_pNetwork) {
PutStatus("You must be connected with a network to use this command"); PutStatus("You must be connected with a network to use this command");
Expand Down Expand Up @@ -1477,6 +1482,10 @@ void CClient::HelpUser() {
Table.SetCell("Description", "Clear the default bind host for this user"); Table.SetCell("Description", "Clear the default bind host for this user");
} }


Table.AddRow();
Table.SetCell("Command", "ShowBindHost");
Table.SetCell("Description", "Show currently selected bind host");

Table.AddRow(); Table.AddRow();
Table.SetCell("Command", "Jump [server]"); Table.SetCell("Command", "Jump [server]");
Table.SetCell("Description", "Jump to the next or the specified server"); Table.SetCell("Description", "Jump to the next or the specified server");
Expand Down

0 comments on commit 80acaa7

Please sign in to comment.