https://bugzilla.wikimedia.org/show_bug.cgi?id=45160
--- Comment #1 from Kasper Souren <[email protected]> --- Here's a quick patch for the --bot flag: --- maintenance/createAndPromote.php +++ maintenance/createAndPromote.php @@ -35,6 +35,7 @@ class CreateAndPromote extends Maintenance { parent::__construct(); $this->mDescription = "Create a new user account"; $this->addOption( "sysop", "Grant the account sysop rights" ); + $this->addOption( "bot", "Add the bot flag to the account" ); $this->addOption( "bureaucrat", "Grant the account bureaucrat rights" ); $this->addArg( "username", "Username of new user" ); $this->addArg( "password", "Password to set" ); @@ -71,6 +72,9 @@ class CreateAndPromote extends Maintenance { if ( $this->hasOption( 'bureaucrat' ) ) { $user->addGroup( 'bureaucrat' ); } + if ( $this->hasOption( 'bot' ) ) { + $user->addGroup( 'bot' ); + } # Increment site_stats.ss_users $ssu = new SiteStatsUpdate( 0, 0, 0, 0, 1 ); -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
