Browse files

Add ShowBindHost command.

  • Loading branch information...
1 parent 38b9525 commit 80acaa7c1655b992b86944f830f83f4b97f1abcb @DarthGandalf DarthGandalf committed Jul 19, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/ClientCommand.cpp
View
9 src/ClientCommand.cpp
@@ -1083,6 +1083,11 @@ void CClient::UserCommand(CString& sLine) {
} else if (sCommand.Equals("CLEARUSERBINDHOST") && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) {
m_pUser->SetBindHost("");
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")) {
if (!m_pNetwork) {
PutStatus("You must be connected with a network to use this command");
@@ -1478,6 +1483,10 @@ void CClient::HelpUser() {
}
Table.AddRow();
+ Table.SetCell("Command", "ShowBindHost");
+ Table.SetCell("Description", "Show currently selected bind host");
+
+ Table.AddRow();
Table.SetCell("Command", "Jump [server]");
Table.SetCell("Description", "Jump to the next or the specified server");

0 comments on commit 80acaa7

Please sign in to comment.