From: Aaron Schulz Date: Wed, 14 Jan 2009 01:45:52 +0000 (+0000) Subject: Added notifyRC2UDP() convenience function X-Git-Tag: 1.31.0-rc.0~43431 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=db4b0db9d204f75f701675e6f4922f3b23bbead0;p=lhc%2Fweb%2Fwiklou.git Added notifyRC2UDP() convenience function --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index ac4de97d89..50b949c7cc 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -197,6 +197,14 @@ class RecentChange $this->mAttribs['rc_last_oldid'] ); } } + + public function notifyRC2UDP() { + global $wgRC2UDPAddress, $wgRC2UDPOmitBots; + # Notify external application via UDP + if( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) { + self::sendToUDP( $this->getIRCLine() ); + } + } /** * Send some text to UDP