600 |
QTextStream ts(&file); |
QTextStream ts(&file); |
601 |
while (!ts.atEnd()) { |
while (!ts.atEnd()) { |
602 |
// Read the line. |
// Read the line. |
603 |
QString sCommand = ts.readLine().simplifyWhiteSpace(); |
QString sCommand = ts.readLine().stripWhiteSpace(); |
604 |
// If not empty, nor a comment, call the server... |
// If not empty, nor a comment, call the server... |
605 |
if (!sCommand.isEmpty() && sCommand[0] != '#') { |
if (!sCommand.isEmpty() && sCommand[0] != '#') { |
606 |
appendMessagesColor(sCommand, "#996633"); |
appendMessagesColor(sCommand, "#996633"); |