[kde-services-devel] r501 - trunk/commitfilter

josef at new.kstuff.org josef at new.kstuff.org
Fri Feb 13 08:11:49 CET 2009


Author: josef
Date: 2009-02-13 08:11:48 +0100 (Fri, 13 Feb 2009)
New Revision: 501

Modified:
   trunk/commitfilter/commitfilter-cleanup
Log:
- monthly amnesty for frequent bouncers



Modified: trunk/commitfilter/commitfilter-cleanup
===================================================================
--- trunk/commitfilter/commitfilter-cleanup	2009-02-13 06:55:10 UTC (rev 500)
+++ trunk/commitfilter/commitfilter-cleanup	2009-02-13 07:11:48 UTC (rev 501)
@@ -123,5 +123,14 @@
 	}
 }
 
+my @x = localtime(time);
+my $day_of_month = @x[3];
+if ($day_of_month == 1){
+	syslog("info", "commitfilter: bounce amnesty day!");
+	my $res = $conn->prepare("UPDATE users SET bounces = 0 WHERE bounces > 0 AND disabled = 0");
+	$res->execute();
+	$res->finish();
+}
+
 $conn->disconnect();
 



More information about the kde-services-devel mailing list