Added SVDRP commands to list and disconnect clients (closes #1860)

This commit is contained in:
Frank Schmirler
2014-11-07 23:01:08 +01:00
parent 7df7185e1a
commit 99b223c55f
13 changed files with 92 additions and 19 deletions

View File

@@ -1836,13 +1836,13 @@ bool cConnectionVTP::Respond(int Code, const char *Message, ...)
Code < 0 ? '-' : ' ', *str);
}
cString cConnectionVTP::ToText() const
cString cConnectionVTP::ToText(char Delimiter) const
{
cString str = cServerConnection::ToText();
cString str = cServerConnection::ToText(Delimiter);
if (Streamer())
return cString::sprintf("%s\t%s", *str, *Streamer()->ToText());
return cString::sprintf("%s%c%s", *str, Delimiter, *Streamer()->ToText());
else if (m_RecPlayer)
return cString::sprintf("%s\t%s", *str, m_RecPlayer->getCurrentRecording()->Name());
return cString::sprintf("%s%c%s", *str, Delimiter, m_RecPlayer->getCurrentRecording()->Name());
else
return str;
}