Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void
- Socket::extractTopic(const QString &message)
- {
- /*QRegExp exp("^:\\S+ 332 \\S+ (\\S+) :(.*)$");
- if (exp.exactMatch(message)) {
- emit onTopic(exp.cap(1), exp.cap(2));
- }*/
- if (message.section(QChar(' '), 1, 1) == "332") {
- emit onTopic(message.section(QChar(' '), 3, 3),
- message.section(QChar(' '), 4).remove(0, 1));
- }
- }
Add Comment
Please, Sign In to add comment