From 5839b7c412fb18f1f3ac00959e6b940f55148780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= Date: Sat, 21 Oct 2017 08:09:36 +0200 Subject: [PATCH] Restore accidentally deleted code I have noticed I accidentally dropped this code during Iec237b288 (apologize!). Change-Id: Ifbd53575ddf8dd1014de19afea395d0eb537c6ee --- includes/AbuseFilter.hooks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/AbuseFilter.hooks.php b/includes/AbuseFilter.hooks.php index 8c5de1490..2641de6ec 100644 --- a/includes/AbuseFilter.hooks.php +++ b/includes/AbuseFilter.hooks.php @@ -676,6 +676,9 @@ class AbuseFilterHooks { if ( $user && !$updater->updateRowExists( 'create abusefilter-blocker-user' ) ) { $user = User::newSystemUser( $username, [ 'steal' => true ] ); + $updater->insertUpdateRow( 'create abusefilter-blocker-user' ); + # Promote user so it doesn't look too crazy. + $user->addGroup( 'sysop' ); } }