Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -86,13 +86,10 @@ |
87 | 87 | } |
88 | 88 | # Notify external application via UDP. |
89 | 89 | # We send this to IRC but do not want to add it the RC table. |
90 | | - global $wgRC2UDPAddress, $wgRC2UDPOmitBots; |
91 | 90 | $titleObj = SpecialPage::getTitleFor( 'Log', $this->type ); |
92 | 91 | $rc = RecentChange::newLogEntry( $now, $titleObj, $this->doer, $this->getRcComment(), '', |
93 | 92 | $this->type, $this->action, $this->target, $this->comment, $this->params, $newId ); |
94 | | - if( $wgRC2UDPAddress && ( !$rc->getAttribute('rc_bot') || !$wgRC2UDPOmitBots ) ) { |
95 | | - RecentChange::sendToUDP( $rc->getIRCLine() ); |
96 | | - } |
| 93 | + $rc->notifyRC2UDP(); |
97 | 94 | } |
98 | 95 | return true; |
99 | 96 | } |