Last modified: 2008-08-05 16:03:17 UTC
Created attachment 5114 [details] Patch for UsernameBlacklist to support multiple blacklist sources Recent problems with vandals jumping across wikis have highlighted the need for a global username blacklist on Wikimedia projects. The Spam and Title blacklists already have support for multiple sources, and accordingly have global blacklists on Meta; however, the UsernameBlacklist is older and no longer maintained, and only sources from a local MediaWiki: message. I've attached a patch against the most recent SVN version of UsernameBlacklist that adds support for multiple blacklist sources patterned on that of TitleBlacklist, so that a global username blacklist can be created on Meta alongside the spam and title blacklists. It also updates the syntax to keep it in line with that of TitleBlacklist so the two can easily be updated in tandem. I've also incorporated the fix for bug 14941 that was causing the UsernameBlacklist to mysteriously crash en.wiki.
Patch is overly large, seems to change lots of unrelated things (formatting etc), and appears to be missing almost all of the actual code. It looks like it adds new files but doesn't include them.
Actually, thinking things over, I think it makes more sense to integrate username blacklist capabilities into TitleBlacklist, then to retrofit TitleBlacklist's improvements on UsernameBlacklist - on most wikis the two blacklists are going to be closely intertwined anyway. :) I've added said functionality to TitleBlacklist in r38636.