Jump to content

Talk:Countervandalism Network

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Krinkle (talk | contribs) at 23:36, 28 May 2010 (→‎Page protection-action is not reported: new section). It may differ significantly from the current version.

Latest comment: 14 years ago by Krinkle in topic Page protection-action is not reported

Status report

Do we really need this section on changes which were made in 2007 and have long since been completed?  — Mike.lifeguard | @en.wb 03:51, 28 May 2009 (UTC)Reply

Probably some of the info just under the Channel settings standardization section can be removed too.  — Mike.lifeguard | @en.wb 03:52, 28 May 2009 (UTC)Reply
Done — Mike.lifeguard | @en.wb 19:13, 1 February 2010 (UTC)Reply

CVNbots triggers

Hi!, I don't know if I'm in the right place so forgive if I'm not. I've noticed the CVNbots are triggered by specific words and notify the use of them in summary (like "pirate" or "shit" etc). Is it possible that some similar greek words are added? (I can provide a list of them). Thank you. --Egmontaz talk 16:55, 7 February 2010 (UTC)Reply

Anyone voiced in a CVN channel can do this for you. Ask in IRC  — mikelifeguard@meta:~$  15:41, 25 May 2010 (UTC)Reply

Slashes in titles

I've confirmed in several channels (#cvn-wp-enconnect and #cvn-wp-nlconnect) that pages that contain a slash in their title (ie. "Wikipedia:Sandbox/Subpage" or "Sand/box" are NOT reported by CVNBot. I've been unable to find in the SWMTBot sourcecode why this is. Does anyone know more about this ? Krinkle 16:50, 23 May 2010 (UTC)Reply

Sorry, no. Fairly serious bug... Who do we know that knows the bot source code well enough to track this down and fix it?  — mikelifeguard@meta:~$  15:40, 25 May 2010 (UTC)Reply
Though I can't say for sure, I think it's got something to do with the following line 47 in RCReader.cs in SWMTBOt 1.18
static Regex fullString = new Regex(@"^\x03" + @"14\[\[\x03" + @"07(?<title>.+?)\x03" + @"14\]\]\x03" + @"4 (?<flag>.*?)\x03" + @"10 \x03" + @"02(?<url>.*)\x03 \x03" + @"5\*\x03 \x03" + @"03(?<user>.*?)\x03 \x03" + @"5\*\x03 (?<szdiff>.*?) \x03" + @"10(?<comment>.*)\x03$");

A subpage edit in irc.wikimedia.org/#en.wikipedia looks like the following (without the colors, but check the irc.wikimedia.org-channel to see them)

rc:
[[User talk:82.74.192.60/Archive]] http://en.wikipedia.org/w/index.php?diff=364691190&oldid=364691134 * 82.74.192.60 * (+2256) test

I'm not a master in Regex'es so I didn't see anything wrong with it on first sight, but someone else might understand why it failed the "/". Krinkle 16:50, 28 May 2010 (UTC)Reply

AFAICT, the (?<title>.+?) part is what captures the page title, and it is correct.  — mikelifeguard@meta:~$  22:10, 28 May 2010 (UTC)Reply
right... I'll trace the result of that Regex and see if it goes wrong somewhere else. Note: Deletions of slash-containing-pagetitles do get reported by the bot. And knowing that with Log events the "page" in the irc.wikimedia stream is Special:Log/thing so it doesn't completely fail at slashes. But edits and creations of such titles seem not to be reported under any circumstances (watching, blacklisting) by the bot. Krinkle 23:22, 28 May 2010 (UTC)Reply

Page protection-action is not reported

I've been curious about this one, but AlexZ told me the bot did supported it but it was either never enabled or commented out. I found in RCReader.cs it does have a case in the switch() for protect on line 255 (SWMT 1.18). But when on line 424 it's sent to the Program.cs: Program.ReactToRCEvent(rce); it goes wrong.

in ReactToRCEvent() there is a switch (r.eventtype) on line 864 in Program.cs but it doesn't have a case for protect. Krinkle 23:36, 28 May 2010 (UTC)Reply