r45725 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45724‎ | r45725 | r45726 >
Date:01:45, 14 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Added notifyRC2UDP() convenience function
Modified paths:
  • /trunk/phase3/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RecentChange.php
@@ -197,6 +197,14 @@
198198 $this->mAttribs['rc_last_oldid'] );
199199 }
200200 }
 201+
 202+ public function notifyRC2UDP() {
 203+ global $wgRC2UDPAddress, $wgRC2UDPOmitBots;
 204+ # Notify external application via UDP
 205+ if( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) {
 206+ self::sendToUDP( $this->getIRCLine() );
 207+ }
 208+ }
201209
202210 /**
203211 * Send some text to UDP

Follow-up revisions

RevisionCommit summaryAuthorDate
r101834Quick ugly fix to avoid duplicate log entries in rc feed....nikerabbit17:07, 3 November 2011

Status & tagging log