Wikipedia:Scripts/Script for XChat
XChat wikilinks script
This Python script for XChat replaces links like this: [[de:Linux]] with the corresponding URL, when either you or someone else types them. It requires XChat 2.0.6 or later.
To install it, copy the text below and save it into a file called wmlinksubber.py in your xchat directory and then start/restart XChat, or load it via the menu Window -> Plugins and Scripts....
XChat directories:
- Unix-based systems
- most likely ~/.xchat or ~/.xchat2
- Windows
- C:\Documents and Settings\username\Application Data\X-Chat 2\
If you don't want it to replace text which you type, then place a # at the beginning of the line EVENTS.append(("Your Message", 1)), and reload the plugin with the Window -> Plugins and Scripts... menu, if it is already loaded.
Script is available on author's subpage:
- w:fr:Utilisateur:FoeNyx/wmlinksubber.py (version 0.0.8c)
If you receive an error to the effect of "so and so is not an ASCII character", add the line "# coding=utf-8" to the head of the script.
XChat regex stalkwords
m:User:Mike.lifeguard/stalkwords.pl is a Perl script for XChat which allows you to have regex stalkwords, which gets around a bug. See the talk page for installation