diff options
Diffstat (limited to 'irc/mainwindow.cpp')
| -rw-r--r-- | irc/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/irc/mainwindow.cpp b/irc/mainwindow.cpp index dede122..cc72b0e 100644 --- a/irc/mainwindow.cpp +++ b/irc/mainwindow.cpp @@ -45,7 +45,7 @@ void MainWindow::readData() { // qDebug()<< "in /dice"; - QString dice=".*PRIVMSG.*\!(.*)"; + QString dice=".*PRIVMSG.*!(.*)"; QRegExp exp(dice); exp.indexIn(readLine); @@ -56,7 +56,7 @@ void MainWindow::readData() if(list.size()==2) { QString cmd = list[1]; - if(m_parser->parseLine(cmd)) + if(m_parser->parseLine(cmd.simplified())) { m_parser->Start(); QString result = m_parser->displayResult(); |