-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
aaron(a)svn.wikimedia.org wrote:
+ print( "Flagging bot account edits...\n"
);
+
+ # Fill in the rc_bot field
+ $sql = "SELECT DISTINCT rc_user FROM $recentchanges " .
+ "LEFT JOIN $usergroups ON rc_user=ug_user " .
+ "WHERE ug_group='bot'";
This is fragile, as there's no guarantee that the "bot" group is the
only one that has bot privileges, or indeed that it exists at all.
Instead, you should look up which group(s), if any, have the 'bot'
permission in $wgGroupPermissions, then search for those groups.
- -- brion vibber (brion @
wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFGUwf2wRnhpk1wk44RAghvAJ9rHGFxPpDuJ52svK8ykrw3OkAsMwCeJcxg
jI74ZZYmW0C7JF+bsqc3t9o=
=8fBO
-----END PGP SIGNATURE-----