Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Add additional namespaces
Browse files Browse the repository at this point in the history
This updates the namespaces that ClueBot NG knows about so that it
excludes non-main namespaces from being patrolled by default.
  • Loading branch information
Cobi committed Jun 14, 2019
1 parent e875c03 commit 01062be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bot/cbng.php
Expand Up @@ -34,7 +34,7 @@ function namespace2name($nsid)
function parseFeed($feed)
{
if (preg_match(
'/^\[\[((Talk|User|Wikipedia|File|MediaWiki|Template|Help|Category|Portal|Special)(( |_)talk)?:)?' .
'/^\[\[((Talk|User|Wikipedia|File|MediaWiki|Template|Help|Category|Portal|Special|Book|Draft|TimedText|Module|Gadget|Gadget(?: |_)definition|Media)(( |_)talk)?:)?' .
'([^\x5d]*)\]\] (\S*) (https?:\/\/en\.wikipedia\.org\/w\/index\.php\?diff=(\d*)&oldid=(\d*).*|' .
'https?:\/\/en\.wikipedia\.org\/wiki\/\S+)? \* ([^*]*) \* (\(([^)]*)\))? (.*)$/S',
$feed,
Expand Down
12 changes: 12 additions & 0 deletions bot/globals.php
Expand Up @@ -55,5 +55,17 @@ class Globals
'category talk' => 15,
'portal' => 100,
'portal talk' => 101,
'book' => 108,
'book talk' => 109,
'draft' => 118,
'draft talk' => 119,
'timedtext' => 710,
'timedtext talk' => 711,
'module' => 828,
'module talk' => 829,
'gadget' => 2300,
'gadget talk' => 2301,
'gadget definition' => 2302,
'gadget definition talk' => 2303,
);
}

0 comments on commit 01062be

Please sign in to comment.