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".
$query .= '&rcid=' . $attribs['rc_id'];
}
// HACK: We need this hook for WMF's secure server setup
- Hooks::run( 'IRCLineURL', array( &$url, &$query, $rc ) );
+ Hooks::run( 'IRCLineURL', [ &$url, &$query, $rc ] );
$url .= $query;
}
*/
public static function cleanupForIRC( $text ) {
return str_replace(
- array( "\n", "\r" ),
- array( " ", "" ),
+ [ "\n", "\r" ],
+ [ " ", "" ],
Sanitizer::decodeCharReferences( $text )
);
}