diff -r a57727e67241 -r d97cf005f674 plugins/SpecialPageFuncs.php --- a/plugins/SpecialPageFuncs.php Fri Jul 22 23:14:06 2011 -0400 +++ b/plugins/SpecialPageFuncs.php Sun Sep 04 02:32:49 2011 -0400 @@ -643,6 +643,9 @@ case 'username': if ( isset($_GET['userinput']) && strlen($_GET['userinput']) >= 3 ) { + if ( $session->user_id == 1 && getConfig('autofill_username_for_guests', 0) != 1 ) + break; + $search = '%' . escape_string_like($_GET['userinput']) . '%'; $lsearch = strtolower($search); $min_id = ( isset($_GET['allow_anon']) && $_GET['allow_anon'] == '1' ) ? '1' : '2';