Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -589,7 +589,7 @@ |
590 | 590 | } |
591 | 591 | |
592 | 592 | protected function getIRCLine() { |
593 | | - global $wgUseRCPatrol; |
| 593 | + global $wgUseRCPatrol, $wgRC2UDPInterwikiPrefix, $wgLocalInterwiki; |
594 | 594 | |
595 | 595 | // FIXME: Would be good to replace these 2 extract() calls with something more explicit |
596 | 596 | // e.g. list ($rc_type, $rc_id) = array_values ($this->mAttribs); [or something like that] |
— | — | @@ -641,9 +641,16 @@ |
642 | 642 | $comment = self::cleanupForIRC( $rc_comment ); |
643 | 643 | $flag = ($rc_new ? "N" : "") . ($rc_minor ? "M" : "") . ($rc_bot ? "B" : ""); |
644 | 644 | } |
| 645 | + |
| 646 | + if( $wgRC2UDPInterwikiPrefix && isset( $wgLocalInterwiki ) ) { |
| 647 | + $titleString = "\00314[[\00303$wgLocalInterwiki:\00307$title\00314]]"; |
| 648 | + } else { |
| 649 | + $titleString = "\00314[[\00307$title\00314]]"; |
| 650 | + } |
| 651 | + |
645 | 652 | # see http://www.irssi.org/documentation/formats for some colour codes. prefix is \003, |
646 | 653 | # no colour (\003) switches back to the term default |
647 | | - $fullString = "\00314[[\00307$title\00314]]\0034 $flag\00310 " . |
| 654 | + $fullString = "$titleString\0034 $flag\00310 " . |
648 | 655 | "\00302$url\003 \0035*\003 \00303$user\003 \0035*\003 $szdiff \00310$comment\003\n"; |
649 | 656 | |
650 | 657 | return $fullString; |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -2048,6 +2048,7 @@ |
2049 | 2049 | $wgRC2UDPAddress = false; |
2050 | 2050 | $wgRC2UDPPort = false; |
2051 | 2051 | $wgRC2UDPPrefix = ''; |
| 2052 | +$wgRC2UDPInterwikiPrefix = false; |
2052 | 2053 | $wgRC2UDPOmitBots = false; |
2053 | 2054 | |
2054 | 2055 | /** |