38 $this->hookContainer = $hookContainer;
39 $this->options = $options;
51 if ( $recentChange->
getAttribute(
'rc_deleted' ) != 0 ) {
59 foreach ( $feeds as $params ) {
64 'omit_minor' =>
false,
65 'omit_patrolled' =>
false,
69 ( $params[
'omit_bots'] && $recentChange->
getAttribute(
'rc_bot' ) ) ||
70 ( $params[
'omit_anon'] && !$performer->isRegistered() ) ||
71 ( $params[
'omit_user'] && $performer->isRegistered() ) ||
72 ( $params[
'omit_minor'] && $recentChange->
getAttribute(
'rc_minor' ) ) ||
73 ( $params[
'omit_patrolled'] && $recentChange->
getAttribute(
'rc_patrolled' ) ) ||
74 !in_array( $recentChange->
getAttribute(
'rc_source' ), RecentChange::INTERNAL_SOURCES )
79 $actionComment = $recentChange->
getExtra(
'actionCommentIRC' );
82 $feed->notify( $recentChange, $actionComment );
104 $url = $canonicalServer . $script;
106 $query =
'?oldid=' . $recentChange->
getAttribute(
'rc_this_oldid' );
108 $query =
'?diff=' . $recentChange->
getAttribute(
'rc_this_oldid' )
109 .
'&oldid=' . $recentChange->
getAttribute(
'rc_last_oldid' );
114 $query .=
'&rcid=' . $recentChange->
getAttribute(
'rc_id' );
117 (
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()