ircredirect

The ircredirect tool redirects users to an irc channel on kiwiirc.com with a randomly generated username. The generated username consists of an adjective taken from a list of 20 adjectives, a noun taken from a list of nouns, and a two-digit number. The two digit number and the adjective are issued sequentially, while the noun is chosen randomly from the list.

Per https://phabricator.wikimedia.org/T172612, user consent must be obtained before redirecting to a third-party server. If user consent was gained on the page linking to the ircredirect tool, add consent=yes to the end of the URL to silenty redirect to kiwiirc.com without displaying the disclaimer, e.g. ircredirect.com/?consent=yes

By default, the script redirects to the Wikipedia Help Channel (wikipedia-en-help on irc.freenode.net). This can be overridden by adding the channel= and server= parameters to the url, e.g. ircredirect/?server=irc.freenode.net&channel=wikipedia-en-help

By default, the seed values are taken from at Wikipedia:IRC help disclaimer/nicks. This can be changed by adding a baseurl= parameter to the url. The URL should be urlencoded, e.g. ircredirect/?baseurl=https%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DWikipedia%3AIRC_help_disclaimer%2Fnicks%3Faction%3Draw

The script will return the text of the redirect URL instead of actually performing the redirect if the debug= paramter is set to any value.

The seed value file is a raw text file, and should contain two lists, one of adjectives and one of nouns. Each list consists of one word per line (do not try to add HTML or wiki line breaks). The noun list should start with the line ----&lt!--NOUN VALUES ONLY BELOW THIS LINE--&gt---- and end with the line ----&lt!--NOUN VALUES ONLY ABOVE THIS LINE--&gt----. The adjective list should start with the line ----&lt!--ADJECTIVE VALUES ONLY BELOW THIS LINE--&gt---- and end with the line ----&lt!--ADJECTIVE VALUES ONLY ABOVE THIS LINE--&gt----. If the file is not found or not properly formatted, the generated name will default to "WPHelp" followed by a two digit number. An example seed file is shown below:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.