User:Kanegasi/irc

English Filter
If you are one of the few people idling in the changes channel, or would like to start using it, I have made a script that shows only English wiki changes. Translation project pages, which are the pages with the slash and two letters after the name, still show up.

This script also truncates the "Minecraft Wiki" from the beginning of each message as well as shortening the Special:Log messages and removing extra brackets for the hotlink script below.

on ^*:TEXT:Minecraft Wiki*:#minecraftwikichanges:if ($nick == Miney) { haltdef | english $1- } alias english { var %w = http://www.minecraftwiki.net var %s = Special:Log var %edit1 = $pos($1-,$chr(91),2) var %edit2 = $calc(%edit1 - (%edit1 * 2)) var %edit3 = $remove($right($1-,%edit2),$chr(91),$chr(93)) var %log1 = $pos($1-,$chr(42),1) var %log2 = $calc((%log1 - (%log1 * 2)) + 1) var %log3 = $right($1-,%log2) if (%w isin $1-) { echo -t #minecraftwikichanges %edit3 } elseif (%s isin $1-) { echo -t #minecraftwikichanges %log3 } }

Wiki Hotlinks
This script changes anything in IRC surrounded by  into a usable link to the page/file/etc. I found this online at Wikipedia:Scripts/mIRC wikilink scripts (bottom of the page).

If you already use my English Filter script, you MUST use the current version above in order for the hotlinker to work on the #minecraftwikichanges channel. In any other channel, this only works if the linked page is the first occurrence in a line of text.

on ^*:HOTLINK:**:*:{ return } on ^*:HOTLINK:**:*:{ return } on *:HOTLINK:*:*:if ([[ isin $hotline) { url $+(http://minecraft.gamepedia.com/,$replace($gettok($gettok($strip($hotline),2,91),1,93),$chr(32),_)) }