From: Kunal Mehta Date: Thu, 18 Feb 2016 20:02:31 +0000 (-0800) Subject: Don't send RC_CATEGORIZE events to the IRC feed X-Git-Tag: 1.31.0-rc.0~7909 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0ec0fa40287fa6337ced01ca6c152d03ae45488d;p=lhc%2Fweb%2Fwiklou.git Don't send RC_CATEGORIZE events to the IRC feed Bug: T127360 Change-Id: I21e4c0edf25fc0b7f16ef3029de879d3b7a2923d --- diff --git a/includes/rcfeed/IRCColourfulRCFeedFormatter.php b/includes/rcfeed/IRCColourfulRCFeedFormatter.php index c800c36fd2..ddea69511a 100644 --- a/includes/rcfeed/IRCColourfulRCFeedFormatter.php +++ b/includes/rcfeed/IRCColourfulRCFeedFormatter.php @@ -33,6 +33,11 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter { global $wgUseRCPatrol, $wgUseNPPatrol, $wgLocalInterwikis, $wgCanonicalServer, $wgScript; $attribs = $rc->getAttributes(); + if ( $attribs['rc_type'] == RC_CATEGORIZE ) { + // Don't send RC_CATEGORIZE events to IRC feed (T127360) + return null; + } + if ( $attribs['rc_type'] == RC_LOG ) { // Don't use SpecialPage::getTitleFor, backwards compatibility with // IRC API which expects "Log".