(bug 14843) IRC should flag redirects with "R" like it does with bots, etc.
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 11 Dec 2008 17:42:49 +0000 (17:42 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 11 Dec 2008 17:42:49 +0000 (17:42 +0000)
RELEASE-NOTES
includes/RecentChange.php

index e406fb1..c006eba 100644 (file)
@@ -218,6 +218,8 @@ The following extensions are migrated into MediaWiki 1.14:
 * Added complimentary function for addHandler() called removeHandler() for removing events
 * Improved security of file uploads for IE clients, using a reverse-engineered 
   algorithm very similar to IE's content detection algorithm.
+* (bug 14843) IRC output for RecentChanges now contains an "R" flag if the page
+  is a redirect.
 
 === Bug fixes in 1.14 ===
 
index 92b9aac..06d6092 100644 (file)
@@ -645,7 +645,8 @@ class RecentChange
                        $flag = $rc_log_action;
                } else {
                        $comment = self::cleanupForIRC( $rc_comment );
-                       $flag = ($rc_new ? "N" : "") . ($rc_minor ? "M" : "") . ($rc_bot ? "B" : "");
+                       $flag = ($rc_new ? "N" : "") . ($rc_minor ? "M" : "") . ($rc_bot ? "B" : "") 
+                                       . ($this->getTitle()->isRedirect() ? "R" : "");
                }
 
                if ( $wgRC2UDPInterwikiPrefix === true ) {