<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Gigaherz's Stuff</title>
	<atom:link href="http://gigaherz.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gigaherz.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<pubDate>Fri, 16 May 2008 04:28:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>/my commands in IRC</title>
		<link>http://gigaherz.wordpress.com/2008/04/29/my-commands-in-irc/</link>
		<comments>http://gigaherz.wordpress.com/2008/04/29/my-commands-in-irc/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 20:19:32 +0000</pubDate>
		<dc:creator>gigaherz</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[mirc]]></category>

		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://gigaherz.wordpress.com/?p=7</guid>
		<description><![CDATA[It has been some time since they day I thought IRC was lacking a way to show &#8221; * nick&#8217;s something&#8221; with &#8220;&#8217;s&#8221; appended to the nickname without a space.
&#8220;/me&#8221; shows a space between the nickname and the text, so &#8220;/me &#8217;s whatever&#8221; doesn&#8217;t look nice.
So today I thought &#8220;if /me uses a ctcp ACTION, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It has been some time since they day I thought IRC was lacking a way to show &#8221; * nick&#8217;s something&#8221; with &#8220;&#8217;s&#8221; appended to the nickname without a space.</p>
<p>&#8220;/me&#8221; shows a space between the nickname and the text, so &#8220;/me &#8217;s whatever&#8221; doesn&#8217;t look nice.</p>
<p>So today I thought &#8220;if /me uses a ctcp ACTION, why not use ctcp SELF for /my?&#8221; and decided to write a short script which sent SELF ctcps when the user types /my, and handles SELF ctcps from other people to display them as &#8221; * nick&#8217;s message&#8221;. This worked mostly well, xcept for some people&#8217;s IRC clients which would reply with an error message when they received the ctcp command.</p>
<p>Later I thought of a nicer solution which wouldn&#8217;t introduce any new CTCP command and would keep the messages compatible with every client.</p>
<p>The idea was to use normal ACTION messages where the beginning is &#8220;&#8217;s&#8221;, and replace the messages so that if the text starts with &#8220;&#8217;s&#8221;, it shows it without a space.</p>
<p>The resulting mIRC script, compatible with BOTH the first idea and the second one, is this:</p>
<pre style="padding-left:30px;">alias my {
  if ( $left($active,1) == @ ) /halt
  if ( $active == Status Window ) /halt
  .me 's $$1-
  echo $color(own) $active $timestamp * $me $+ 's $$1-
}

on ^1:ACTION:'s *:#:{
  echo $color(action) $chan $timestamp * $nick $+ 's $$2-
  /haltdef
}

on ^1:ACTION:*:?:{
  if ( " $$1 " == " 's " ) {
    echo $color(action) $nick $timestamp * $nick $+ 's $$2-
    /haltdef
  }
}

CTCP 1:SELF *:*:{
  echo $color(action) $target $timestamp * $nick $+ 's $$2-
  /haltdef
}</pre>
<p>To use it, you just have to paste the text into a mirc remotes script (you can open the script editor with alt+r, and use file-&gt;new to create a new file).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gigaherz.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gigaherz.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gigaherz.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gigaherz.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gigaherz.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gigaherz.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gigaherz.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gigaherz.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gigaherz.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gigaherz.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gigaherz.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gigaherz.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaherz.wordpress.com&blog=2305443&post=7&subd=gigaherz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://gigaherz.wordpress.com/2008/04/29/my-commands-in-irc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Crow Blade: An Online Fantasy Book</title>
		<link>http://gigaherz.wordpress.com/2008/04/23/bleh/</link>
		<comments>http://gigaherz.wordpress.com/2008/04/23/bleh/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 20:49:32 +0000</pubDate>
		<dc:creator>gigaherz</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://gigaherz.wordpress.com/?p=5</guid>
		<description><![CDATA[Gigaherz is proud to present all of you his newest and latest &#8220;story intro&#8221; (well I don&#8217;t know if i&#8217;ll be continuing it soon XD):
Crow Blade

It&#8217;s the story of a guy who one day waked up in a hospital with almsot no memories, and a strange &#8220;reattached&#8221; arm with a scar on the hand. Once [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Gigaherz is proud to present all of you his newest and latest &#8220;story intro&#8221; (well I don&#8217;t know if i&#8217;ll be continuing it soon XD):</p>
<h2 style="text-align:center;"><a href="/crow-blade">Crow Blade</a></h2>
<p><span id="more-5"></span></p>
<p>It&#8217;s the story of a guy who one day waked up in a hospital with almsot no memories, and a strange &#8220;reattached&#8221; arm with a scar on the hand. Once the guy gets out of that hospital, he finds out the world has more than he saw before, and when he&#8217;s in trouble, a strange sword and a gauntlet appear in his right arm, ready for him to use them against the strange monsters which seem to be trying to hunt him.</p>
<p>A battle for survival, and to recover his lost memories, which hide a dark secret about his origins.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gigaherz.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gigaherz.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gigaherz.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gigaherz.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gigaherz.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gigaherz.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gigaherz.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gigaherz.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gigaherz.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gigaherz.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gigaherz.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gigaherz.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaherz.wordpress.com&blog=2305443&post=5&subd=gigaherz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://gigaherz.wordpress.com/2008/04/23/bleh/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>