Jump to navigation Jump to search
Available from version 1.18.0 (r94995)
When constructing the URL to use in an IRC notification.
Define function:
public static function onIRCLineURL( &$url, &$query, RecentChange $rc ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"IRCLineURL": "MyExtensionHooks::onIRCLineURL"

For MediaWiki ≤1.25:

$wgHooks['IRCLineURL'][] = 'MyExtensionHooks::onIRCLineURL';
Called from:File(s): rcfeed/IRCColourfulRCFeedFormatter.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:IRCLineURL extensions.


Callee may modify $url and $query, URL will be constructed as $url . $query

  • &$url: URL to index.php
  • &$query: Query string
  • RecentChange $rc: The change the url and query were generated for