37 $this->hookContainer = $hookContainer;
38 $this->options = $options;
50 if ( $recentChange->
getAttribute(
'rc_deleted' ) != 0 ) {
58 foreach ( $feeds as $params ) {
63 'omit_minor' =>
false,
64 'omit_patrolled' =>
false,
68 ( $params[
'omit_bots'] && $recentChange->
getAttribute(
'rc_bot' ) ) ||
69 ( $params[
'omit_anon'] && !$performer->isRegistered() ) ||
70 ( $params[
'omit_user'] && $performer->isRegistered() ) ||
71 ( $params[
'omit_minor'] && $recentChange->
getAttribute(
'rc_minor' ) ) ||
72 ( $params[
'omit_patrolled'] && $recentChange->
getAttribute(
'rc_patrolled' ) ) ||
73 !in_array( $recentChange->
getAttribute(
'rc_source' ), RecentChange::INTERNAL_SOURCES )
78 $actionComment = $recentChange->
getExtra(
'actionCommentIRC' );
81 $feed->notify( $recentChange, $actionComment );
103 $url = $canonicalServer . $script;
105 $query =
'?oldid=' . $recentChange->
getAttribute(
'rc_this_oldid' );
107 $query =
'?diff=' . $recentChange->
getAttribute(
'rc_this_oldid' )
108 .
'&oldid=' . $recentChange->
getAttribute(
'rc_last_oldid' );
113 $query .=
'&rcid=' . $recentChange->
getAttribute(
'rc_id' );
116 (
new HookRunner( $this->hookContainer ) )->onIRCLineURL(
$url, $query, $recentChange );
A class containing constants representing the names of configuration variables.
const UseRCPatrol
Name constant for the UseRCPatrol setting, for use with Config::get()
const CanonicalServer
Name constant for the CanonicalServer setting, for use with Config::get()
const RCFeeds
Name constant for the RCFeeds setting, for use with Config::get()
const UseNPPatrol
Name constant for the UseNPPatrol setting, for use with Config::get()
const Script
Name constant for the Script setting, for use with Config::get()