From b1b72a85f9f7777fd539529fded008d414082f2f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 15 Jan 2009 01:42:11 +0000 Subject: [PATCH] Use new notifyRC2UDP() function in LogPage to avoid duplicated code --- includes/LogPage.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index 1950b02d9e..a6afbd750d 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -86,13 +86,10 @@ class LogPage { } # Notify external application via UDP. # We send this to IRC but do not want to add it the RC table. - global $wgRC2UDPAddress, $wgRC2UDPOmitBots; $titleObj = SpecialPage::getTitleFor( 'Log', $this->type ); $rc = RecentChange::newLogEntry( $now, $titleObj, $this->doer, $this->getRcComment(), '', $this->type, $this->action, $this->target, $this->comment, $this->params, $newId ); - if( $wgRC2UDPAddress && ( !$rc->getAttribute('rc_bot') || !$wgRC2UDPOmitBots ) ) { - RecentChange::sendToUDP( $rc->getIRCLine() ); - } + $rc->notifyRC2UDP(); } return true; } -- 2.20.1