Skip to content

Commit

Permalink
Reword ClearBindHost/ClearUserBindHost success msg
Browse files Browse the repository at this point in the history
The ClearBindHost and ClearUserBindHost success messages do not make a distinction on whether it's a network bind host that's being cleared or whether it's a user bind host that's being cleared.  I think that this should be reworded to make the distinction.
(cherry picked from commit 12d81e1)
  • Loading branch information
teward authored and DarthGandalf committed Apr 14, 2014
1 parent 7366edf commit 9231a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ClientCommand.cpp
Expand Up @@ -1227,10 +1227,10 @@ void CClient::UserCommand(CString& sLine) {
return; return;
} }
m_pNetwork->SetBindHost(""); m_pNetwork->SetBindHost("");
PutStatus("Bind host cleared"); PutStatus("Bind host cleared for this network.");
} 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 for your user.");
} else if (sCommand.Equals("SHOWBINDHOST")) { } else if (sCommand.Equals("SHOWBINDHOST")) {
PutStatus("This user's default bind host " + (m_pUser->GetBindHost().empty() ? "not set" : "is [" + m_pUser->GetBindHost() + "]")); PutStatus("This user's default bind host " + (m_pUser->GetBindHost().empty() ? "not set" : "is [" + m_pUser->GetBindHost() + "]"));
if (m_pNetwork) { if (m_pNetwork) {
Expand Down

0 comments on commit 9231a6f

Please sign in to comment.