mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Re-match the regex
This commit is contained in:
@@ -282,6 +282,7 @@ TwitterPlugin::parseGotTomahawk( const QRegExp ®ex, const QString &screenName
|
|||||||
{
|
{
|
||||||
QString myScreenName = TomahawkSettings::instance()->twitterScreenName();
|
QString myScreenName = TomahawkSettings::instance()->twitterScreenName();
|
||||||
qDebug() << "TwitterPlugin found an exact matching Got Tomahawk? mention or direct message from user " << screenName;
|
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 ) )
|
if ( text.startsWith( '@' ) && regex.captureCount() >= 2 && regex.cap( 1 ) != QString( '@' + myScreenName ) )
|
||||||
{
|
{
|
||||||
qDebug() << "TwitterPlugin skipping mention because it's directed @someone that isn't us";
|
qDebug() << "TwitterPlugin skipping mention because it's directed @someone that isn't us";
|
||||||
|
Reference in New Issue
Block a user