Fix leading space and trailing LF in real name
Use proper const char* to const char* copy in NetworkVatlib::initiateConnection()
This commit is contained in:
gmt2001
2013-08-04 01:54:03 -04:00
parent 930be03fa6
commit d1e35c0b27
2 changed files with 15 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ void Client::setCallsignCmd(QTextStream& args)
void Client::setRealNameCmd(QTextStream& args)
{
emit setRealName(args.readAll());
emit setRealName(args.readLine().mid(1)); //readLine returns the entire line up to, but excluding, the LF character. mid(int) is the QString equivilent of a substring(start), used here to remove a space
}
void Client::initiateConnectionCmd(QTextStream&)