From 3657579c32a4c0f1216102e475c88f13feefe9fa Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 29 Mar 2011 17:06:50 -0400 Subject: [PATCH] Re-match the regex --- src/sip/twitter/twitter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sip/twitter/twitter.cpp b/src/sip/twitter/twitter.cpp index b33b77666..2e28b64e5 100644 --- a/src/sip/twitter/twitter.cpp +++ b/src/sip/twitter/twitter.cpp @@ -282,6 +282,7 @@ TwitterPlugin::parseGotTomahawk( const QRegExp ®ex, const QString &screenName { QString myScreenName = TomahawkSettings::instance()->twitterScreenName(); qDebug() << "TwitterPlugin found an exact matching Got Tomahawk? mention or direct message from user " << screenName; + regex.exactMatch( text ); if ( text.startsWith( '@' ) && regex.captureCount() >= 2 && regex.cap( 1 ) != QString( '@' + myScreenName ) ) { qDebug() << "TwitterPlugin skipping mention because it's directed @someone that isn't us";