mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #22
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:
@@ -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&)
|
||||
|
||||
Reference in New Issue
Block a user