Author: dom Date: 2012-01-24 18:52:47 +0000 (Tue, 24 Jan 2012) New Revision: 1296
Modified: sites/cambridge.openguides.org/lib/OpenGuides/Local/CamGuideSpam.pm Log: disable notifications
Modified: sites/cambridge.openguides.org/lib/OpenGuides/Local/CamGuideSpam.pm =================================================================== --- sites/cambridge.openguides.org/lib/OpenGuides/Local/CamGuideSpam.pm 2011-06-03 11:33:54 UTC (rev 1295) +++ sites/cambridge.openguides.org/lib/OpenGuides/Local/CamGuideSpam.pm 2012-01-24 18:52:47 UTC (rev 1296) @@ -21,49 +21,49 @@
if ( $name eq "Category Board Games" && $content =~ m'http://.*http://.*http://%27is ) { - $class->notify_admins( %args, - id => "00001", - reason => "Edit to board games page with more than two URLs in." ); +# $class->notify_admins( %args, +# id => "00001", +# reason => "Edit to board games page with more than two URLs in." ); return 1; }
if ( $name eq "Station Tandoori" && $host eq "82.6.101.64" ) { - $class->notify_admins( %args, - id => "00002", - reason => "82.6.101.64 editing Station Tandoori." ); +# $class->notify_admins( %args, +# id => "00002", +# reason => "82.6.101.64 editing Station Tandoori." ); return 1; }
if ( $content =~ /\b(viagra|cialis|supermeganah|tramadol|vicodin|phentermine|zoloft|lolita)\b/is ) { - $class->notify_admins( %args, - id => "00003", - reason => "Matches $1" ); +# $class->notify_admins( %args, +# id => "00003", +# reason => "Matches $1" ); return 1; }
foreach my $cat ( @cats ) { if ( $cat =~ m'http://%27i ) { - $class->notify_admins( %args, - id => "00004", - reason => "URL in category field" ); +# $class->notify_admins( %args, +# id => "00004", +# reason => "URL in category field" ); return 1; } }
foreach my $loc ( @locs ) { if ( $loc =~ m'http://%27i ) { - $class->notify_admins( %args, - id => "00005", - reason => "URL in locales field" ); +# $class->notify_admins( %args, +# id => "00005", +# reason => "URL in locales field" ); return 1; } }
if ( ( scalar @cats == 1 ) && ( scalar @locs == 1 ) && $cats[0] eq $locs[0] ) { - $class->notify_admins( %args, - id => "00006", - reason => "category and locale identical" ); +# $class->notify_admins( %args, +# id => "00006", +# reason => "category and locale identical" ); return 1; } }
openguides-commits@lists.openguides.org