Guest User

Untitled

a guest
Jun 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. void
  2. Socket::extractTopic(const QString &message)
  3. {
  4. /*QRegExp exp("^:\\S+ 332 \\S+ (\\S+) :(.*)$");
  5.  
  6. if (exp.exactMatch(message)) {
  7. emit onTopic(exp.cap(1), exp.cap(2));
  8. }*/
  9.  
  10. if (message.section(QChar(' '), 1, 1) == "332") {
  11. emit onTopic(message.section(QChar(' '), 3, 3),
  12. message.section(QChar(' '), 4).remove(0, 1));
  13. }
  14. }
Add Comment
Please, Sign In to add comment