User:Kanegasi/irc

Truncating 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 short script that truncates the bot's nick and "Minecraft Wiki" text, streamlining the channel into a log of sorts. Even though the channel's settings block chat, this script adds insurance that you see nothing but recent changes by hiding any chat that's not from the bot.

on ^*:TEXT:*:#minecraftwikichanges:{ haltdef if ($nick == Miney) { echo -t #minecraftwikichanges $right($1-,$calc($pos($1-,$chr(32),2)-($pos($1-,$chr(32),2)*2))) } }

Wiki Hotlinks
This script changes anything in IRC surrounded by  or  into a usable link to the page/file/etc. I found this online at Wikipedia:Scripts/mIRC wikilink scripts (second script on the page). This links every use of double brackets (regular or curly), including multiple occurrences in one line. It currently does not work if there's any characters up against the outside of the brackets, like, except for links with quotes, since the script ignores quotes.

on ^$*:HOTLINK:/.*[\{\}\[\]]{2}.*/:*:{ return } on *:HOTLINK:*:*:{ tokenize 32 $remove($1,,,,,") if ($regex($hotline,(.*\[\[(.*? $+ $1 $+ .*?)(\|.*)?\]\].*|.*(\{\{.*? $+ $1 $+ .*?)\}\}.*))) {    url %wikiurl $+(http://minecraft.gamepedia.com/,$replace($gettok($strip($regml(2)),1,124),{{,Template:,$chr(32),_))  } }