<?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:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HM2K.com &#187; IRC</title>
	<atom:link href="http://www.hm2k.com/posts/category/internet/irc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hm2k.com</link>
	<description>The research of an internet entrepreneur and IT consultant</description>
	<lastBuildDate>Wed, 30 Jun 2010 09:29:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Universal Currency Converter TCL for Eggdrop</title>
		<link>http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop</link>
		<comments>http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:41:31 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[currency]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[TCL]]></category>
		<category><![CDATA[ucc]]></category>
		<category><![CDATA[xe.com]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=602</guid>
		<description><![CDATA[This is a currency converter written in TCL for Eggdrop, which is similar to the ucc.mrc I wrote for mIRC.
I used to use the xeucc.tcl, but that script no longer works and hasn&#8217;t been updated since 2008.
&#62; !ucc 9 usd gbp
&#60;Bot&#62; Could not obtain results from XE.com, sorry!
Further more xeucc.tcl uses the XE.com website to [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
<li><a href='http://www.hm2k.com/posts/worldtime-tcl' rel='bookmark' title='Permanent Link: worldtime.tcl'>worldtime.tcl</a> <small>Sometimes you need to know the time somewhere else in...</small></li>
<li><a href='http://www.hm2k.com/posts/tinysong-tcl-script-for-eggdrop' rel='bookmark' title='Permanent Link: TinySong TCL script for Eggdrop'>TinySong TCL script for Eggdrop</a> <small>If you&#8217;ve not heard of TinySong, you&#8217;re missing out! TinySong...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is a currency converter written in TCL for Eggdrop, which is similar to the ucc.mrc I wrote for mIRC.</p>
<p>I used to use the <a href="http://members.dandy.net/~fbn/xeucc.tcl.txt">xeucc.tcl</a>, but that script no longer works and hasn&#8217;t been updated since 2008.</p>
<blockquote><p>&gt; !ucc 9 usd gbp<br />
&lt;Bot&gt; Could not obtain results from XE.com, sorry!</p></blockquote>
<p><span id="more-602"></span>Further more xeucc.tcl uses the XE.com website to gather the information, however they don&#8217;t like us doing this, and have since added the following message:</p>
<blockquote><p>WARNING: Automated extraction of rates is prohibited under the Terms of Use.</p></blockquote>
<p>Other scripts such as Incith&#8217;s Exchange also use a website. This one uses Yahoo Finance. The problem is that this website is subject to change at any time without prior notice.</p>
<p>Parsing a website that is subject to change is not always a good idea. Instead what is needed is an API which is easy to parse and extract the data and also unlikely to change formatting.</p>
<p>Although XE.com does have an API, it is not free. This is no good.</p>
<p>I have decided instead to use the <a href="http://developer.yahoo.com/">Yahoo Developer Network</a> Currency Converter API, which is much easier to parse and permits this kind of usage.</p>
<p>There is a choice of two URLs which you can call to get the data:</p>
<blockquote><p><a href="http://finance.yahoo.com/d/quotes.csv?e=.csv&amp;f=sl1d1t1&amp;s=USDGBP=X">http://finance.yahoo.com/d/quotes.csv?e=.csv&amp;f=sl1d1t1&amp;s=USDGBP=X</a></p>
<p><a href="http://download.finance.yahoo.com/d/?f=sl1d1t1&amp;s=USDGBP=X">http://download.finance.yahoo.com/d/?f=sl1d1t1&amp;s=USDGBP=X</a></p></blockquote>
<p>Both examples should provide you with a csv file to download which will contain the currency information.</p>
<p>I have used the second URL in my script.</p>
<p><strong>Usage</strong></p>
<blockquote><p>&gt; .ucc<br />
&lt;Bot&gt; Usage: .ucc &lt;amount&gt; &lt;from&gt; &lt;to&gt;<br />
&gt; .ucc 9 usd gbp<br />
&lt;Bot&gt; HM2K, * UCC: 9 USD is 5.8905 GBP as of 2/25/2010 9:22am</p></blockquote>
<p><strong>Download</strong></p>
<ul>
<li>Download <a href="http://hm2k.googlecode.com/svn/trunk/code/tcl/ucc.tcl">ucc.tcl</a></li>
</ul>
<p>If you like it, or even if you don&#8217;t, please leave a comment below. Thanks.</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
<li><a href='http://www.hm2k.com/posts/worldtime-tcl' rel='bookmark' title='Permanent Link: worldtime.tcl'>worldtime.tcl</a> <small>Sometimes you need to know the time somewhere else in...</small></li>
<li><a href='http://www.hm2k.com/posts/tinysong-tcl-script-for-eggdrop' rel='bookmark' title='Permanent Link: TinySong TCL script for Eggdrop'>TinySong TCL script for Eggdrop</a> <small>If you&#8217;ve not heard of TinySong, you&#8217;re missing out! TinySong...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>worldtime.tcl</title>
		<link>http://www.hm2k.com/posts/worldtime-tcl</link>
		<comments>http://www.hm2k.com/posts/worldtime-tcl#comments</comments>
		<pubDate>Fri, 20 Nov 2009 10:04:23 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[TCL]]></category>
		<category><![CDATA[timezones]]></category>
		<category><![CDATA[worldtime]]></category>
		<category><![CDATA[zoneinfo]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=573</guid>
		<description><![CDATA[Sometimes you need to know the time somewhere else in the world. I find it useful to get my eggdrop to return the time of another timezone&#8230;

&#62; .tz london
&#60;Bot&#62; HM2K, The time for the london timezone is Fri Feb 13 23:31:30 2009

However, much like my old weather.tcl, I realised that my worldtime.tcl had passed it&#8217;s [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
<li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
<li><a href='http://www.hm2k.com/posts/which-is-the-best-operating-system' rel='bookmark' title='Permanent Link: Which is the best operating system?'>Which is the best operating system?</a> <small>I&#8217;ve done my research and i&#8217;ve discovered there&#8217;s only 6...</small></li>
<li><a href='http://www.hm2k.com/posts/eticket' rel='bookmark' title='Permanent Link: eTicket'>eTicket</a> <small>For the past few weeks I have been mostly working...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to know the time somewhere else in the world. I find it useful to get my eggdrop to return the time of another timezone&#8230;</p>
<blockquote>
<pre>&gt; .tz london
&lt;Bot&gt; HM2K, The time for the london timezone is Fri Feb 13 23:31:30 2009</pre>
</blockquote>
<p>However, much like my old <em>weather.tcl</em>, I realised that my <em>worldtime.tcl</em> had passed it&#8217;s sell by date and had now expired.</p>
<p>My old <em>worldtime.tcl</em> which was based on a script by <em>Murf</em> which used <em>worldtimeserver.com</em> to gather it&#8217;s data had stopped working.</p>
<p>It would seem that <em>worldtimeserver.com</em> had changed their markup which meant that it was no longer possible to parse the correct data from the HTML.</p>
<p>Never mind, I thought, there must be a better way, that doesn&#8217;t need to use a third party website, that won&#8217;t stop working.</p>
<p>After all operating systems have worldtime build in without using a website, so how do they do it?</p>
<p>So, I did some investigation&#8230;</p>
<p><span id="more-573"></span></p>
<p><span style="text-decoration: line-through;">I discovered that on Linux based systems (including FreeBSD) the time zone information was stored locally.</span></p>
<blockquote><p><span style="text-decoration: line-through;">/usr/share/zoneinfo/</span></p></blockquote>
<p><span style="text-decoration: line-through;">Using a bit of Google magic, I managed to locate a few pre-made procedures to help me read the time zone information.</span></p>
<ul>
<li><span style="text-decoration: line-through;"><a href="http://alice.wu-wien.ac.at:8000/xowiki/load-timezones.tcl">load-timezones.tcl</a></span>
<ul>
<li><span style="text-decoration: line-through;">get_tz_names</span></li>
<li><span style="text-decoration: line-through;">get_tz_rules</span></li>
</ul>
</li>
</ul>
<p><span style="text-decoration: line-through;">Using these functions I was able to find the right timezone and get the GMT offset which allowed me to work out the time in that timezone using the unix ticks.</span></p>
<p><span style="text-decoration: line-through;">At the moment, because it reads the time zone files that are only available on Linux based systems, it will not work on windrops.</span></p>
<p><span style="text-decoration: line-through;">However, what I may do next time is build a function that saves the timezone information into a database file which can be used on windows systems and will also give the Linux systems a cache file to make it respond quicker.</span></p>
<p><strong>Update: </strong>I decided to stop using the tz database method and replace it with a Google lookup method, which is far more accurate and portable.</p>
<p>So now you&#8217;ll probably want to download it&#8230;</p>
<ul>
<li><a href="http://hm2k.googlecode.com/svn/trunk/code/tcl/worldtime.tcl">Download worldtime.tcl</a></li>
</ul>
<p>Hope it works for you.</p>
<p>Enjoy!</p>
<p>Note: If you find this useful, or have an issue with the script, please add a comment below. Thanks.</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
<li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
<li><a href='http://www.hm2k.com/posts/which-is-the-best-operating-system' rel='bookmark' title='Permanent Link: Which is the best operating system?'>Which is the best operating system?</a> <small>I&#8217;ve done my research and i&#8217;ve discovered there&#8217;s only 6...</small></li>
<li><a href='http://www.hm2k.com/posts/eticket' rel='bookmark' title='Permanent Link: eTicket'>eTicket</a> <small>For the past few weeks I have been mostly working...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/worldtime-tcl/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>weather.tcl</title>
		<link>http://www.hm2k.com/posts/weather-tcl</link>
		<comments>http://www.hm2k.com/posts/weather-tcl#comments</comments>
		<pubDate>Thu, 05 Nov 2009 00:37:14 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[eggtcl]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[TCL]]></category>
		<category><![CDATA[weather]]></category>
		<category><![CDATA[weather.tcl]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=560</guid>
		<description><![CDATA[Today, after I decided to hang out in #eggtcl on EFnet, someone asked the following:
&#60;daILLeST&#62; anyine know of a weather tcl that actually works? All the ones I find are outdated, or in another language&#8230;
I decided it was time that I updated my old weather.tcl based on a script by Ycarus for eggdrop bots.
Before, many [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/worldtime-tcl' rel='bookmark' title='Permanent Link: worldtime.tcl'>worldtime.tcl</a> <small>Sometimes you need to know the time somewhere else in...</small></li>
<li><a href='http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today, after I decided to hang out in #eggtcl on EFnet, someone asked the following:</p>
<blockquote><p>&lt;daILLeST&gt; anyine know of a weather tcl that actually works? All the ones I find are outdated, or in another language&#8230;</p></blockquote>
<p>I decided it was time that I updated my old weather.tcl based on a script by Ycarus for eggdrop bots.</p>
<p><span id="more-560"></span>Before, many scripts used weather underground (wunderground.com) to gather their feed.</p>
<p>I believe this is because there were many existing TCL based software that used this site to gather their data via telnet.</p>
<p>Telnet access to their server stopped working correctly, so scripts began using their http site to gather data. This too eventually stopped working as once they changed their site, the scripts could no longer parse the html for the data.</p>
<p>Enter Google.</p>
<p>Google has a weather API that they use for their &#8220;<a href="http://www.google.com/ig">iGoogle</a>&#8220;, which is very handy.</p>
<p>Although it appears to be undocumented by Google, working with the API is easy enough&#8230;</p>
<blockquote><p><a href="http://www.google.com/ig/api?weather=london&amp;hl=en">http://www.google.com/ig/api?weather=london&amp;hl=en</a></p></blockquote>
<p>The query string contains a &#8220;weather&#8221; parameter, which is generally city or postcode and the &#8220;hl&#8221; parameter which is the language.</p>
<p>This will return an XML formatted result for the city of &#8220;London, England&#8221;.</p>
<p>We can then parse the data we want from this and return it accordingly.</p>
<p>So, put it all together, a bit of TCL care (get it?), and we&#8217;re done&#8230;</p>
<ul>
<li>Download <a href="http://hm2k.googlecode.com/svn/trunk/code/tcl/weather.tcl">weather.tcl</a></li>
</ul>
<p>It works well, and returns a result similar to this:</p>
<blockquote><p>&gt; .wz london<br />
&lt;Bot&gt; HM2K, * Weather: London, England: Mostly Cloudy, 8ºC Humidity: 87% Wind: W at 9 mph</p></blockquote>
<p>Hope you find this useful.</p>
<p>What I may do next time&#8230;</p>
<p>Since Google&#8217;s Weather API is completely officially undocumented it&#8217;s worth noting that in future it may be wise to use <a href="http://developer.yahoo.com/weather/">Yahoo&#8217;s weather API</a>, which is fully and officially documented.</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/worldtime-tcl' rel='bookmark' title='Permanent Link: worldtime.tcl'>worldtime.tcl</a> <small>Sometimes you need to know the time somewhere else in...</small></li>
<li><a href='http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/weather-tcl/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ident Spoofing</title>
		<link>http://www.hm2k.com/posts/ident-spoofing</link>
		<comments>http://www.hm2k.com/posts/ident-spoofing#comments</comments>
		<pubDate>Wed, 14 Oct 2009 12:23:01 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[ident]]></category>
		<category><![CDATA[oidentd]]></category>
		<category><![CDATA[rfc1413]]></category>
		<category><![CDATA[spoofing]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=517</guid>
		<description><![CDATA[Today I wrote about Oidentd on Wikipedia. Ident as per RFC 1413 is used for a few different services, in particular IRC. A feature of oidentd that my users find useful is ident spoofing.
Ident is important on IRC as some servers do not allow you to connect unless you have an ident, while others do, [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/configuring-a-freebsd-irc-shell-server' rel='bookmark' title='Permanent Link: Configuring a FreeBSD IRC Shell Server'>Configuring a FreeBSD IRC Shell Server</a> <small>This is a brief guide created to help configure a...</small></li>
<li><a href='http://www.hm2k.com/posts/freebsd-socks-proxy-for-mirc' rel='bookmark' title='Permanent Link: Setting up a FreeBSD socks proxy server for use with mIRC'>Setting up a FreeBSD socks proxy server for use with mIRC</a> <small>I&#8217;m getting fed up with my current IRC BNC software....</small></li>
<li><a href='http://www.hm2k.com/posts/hm2ks-code-repository' rel='bookmark' title='Permanent Link: HM2K&#8217;s code repository'>HM2K&#8217;s code repository</a> <small>HM2K&#8217;s code repository is now open for business! This repository...</small></li>
<li><a href='http://www.hm2k.com/posts/efnet-uk' rel='bookmark' title='Permanent Link: EFnet UK'>EFnet UK</a> <small>On Sunday July 19 2009 Hardy announced on the EFnet...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today I wrote about <a href="http://en.wikipedia.org/wiki/Oidentd">Oidentd</a> on Wikipedia. <a href="http://en.wikipedia.org/wiki/Ident">Ident</a> as per <a href="http://tools.ietf.org/html/rfc1413">RFC 1413</a> is used for a few different services, in particular <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</a>. A feature of oidentd that my users find useful is ident spoofing.</p>
<p><span id="more-517"></span>Ident is important on IRC as some servers do not allow you to connect unless you have an ident, while others do, you find yourself with a tide (~) prefix before your username. These are sometimes banned. For example:</p>
<blockquote><p>HM2K!HM2K@ROFL.name</p>
<p><em>#This is an example of a real user with a real ident</em></p>
<p>baduser!~asdfg@123.123.123.123</p>
<p><em>#This is an example of a possible exploited system</em></p></blockquote>
<p>Generally the ident server (such as oidentd) will return the user&#8217;s username as the ident when it is requested, however on my servers, I allow some of my users to spoof their ident.</p>
<p>This means they can change their ident to whatever they like, regardless of their username.</p>
<p>To do this, you need to create the <a href="http://linux.die.net/man/5/oidentd.conf"><em>$HOME/.oidentd.conf</em></a> file, with the following content:</p>
<blockquote><p>global { reply &#8216;$ident&#8217;}</p>
<p><em>#Note: Where $ident is, replace with the ident you want.</em></p></blockquote>
<p>I know some users find this a bit difficult or confusing, so I created a script to do it for them.</p>
<ul>
<li><a href="http://hm2k.googlecode.com/svn/trunk/code/shell/setident.sh">setident.sh</a> &#8211; A script used to set your ident</li>
</ul>
<p>It&#8217;s works fine using the sh unix shell on FreeBSD.</p>
<p>If you are on my shell servers, you should be able to take advantage of this using the &#8220;setident&#8221; command.</p>
<p>Enjoy!</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/configuring-a-freebsd-irc-shell-server' rel='bookmark' title='Permanent Link: Configuring a FreeBSD IRC Shell Server'>Configuring a FreeBSD IRC Shell Server</a> <small>This is a brief guide created to help configure a...</small></li>
<li><a href='http://www.hm2k.com/posts/freebsd-socks-proxy-for-mirc' rel='bookmark' title='Permanent Link: Setting up a FreeBSD socks proxy server for use with mIRC'>Setting up a FreeBSD socks proxy server for use with mIRC</a> <small>I&#8217;m getting fed up with my current IRC BNC software....</small></li>
<li><a href='http://www.hm2k.com/posts/hm2ks-code-repository' rel='bookmark' title='Permanent Link: HM2K&#8217;s code repository'>HM2K&#8217;s code repository</a> <small>HM2K&#8217;s code repository is now open for business! This repository...</small></li>
<li><a href='http://www.hm2k.com/posts/efnet-uk' rel='bookmark' title='Permanent Link: EFnet UK'>EFnet UK</a> <small>On Sunday July 19 2009 Hardy announced on the EFnet...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/ident-spoofing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EFnet UK</title>
		<link>http://www.hm2k.com/posts/efnet-uk</link>
		<comments>http://www.hm2k.com/posts/efnet-uk#comments</comments>
		<pubDate>Wed, 23 Sep 2009 13:40:56 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[demon]]></category>
		<category><![CDATA[efnet]]></category>
		<category><![CDATA[uk]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=515</guid>
		<description><![CDATA[On Sunday July 19 2009 Hardy announced on the EFnet website that Demon Internet will be delinking efnet.demon.co.uk and hub.uk from the EFnet IRC network in August.
For me, it marks the end of an era. There are no more UK IRC servers on the EFnet IRC network.

Gone are those days that I remember back in [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/lame-botnet' rel='bookmark' title='Permanent Link: Lame Botnet'>Lame Botnet</a> <small>Yes, my botnet is pretty lame, but it&#8217;s also kinda...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>On Sunday July 19 2009 Hardy announced on the <a href="http://www.efnet.org/">EFnet website</a> that <a href="http://en.wikipedia.org/wiki/Demon_Internet">Demon Internet</a> will be <a href="http://forum.efnet.org/viewtopic.php?t=2491">delinking efnet.demon.co.uk and hub.uk</a> from the <a href="http://en.wikipedia.org/wiki/EFnet">EFnet IRC network</a> in August.</p>
<p>For me, it marks the end of an era. There are no more UK IRC servers on the EFnet IRC network.</p>
<p><span id="more-515"></span></p>
<p>Gone are those days that I remember back in 1998 when the <a href="http://tools.ietf.org/html/rfc1459">IRC protocol</a> was an important part of the internet for any ISP.</p>
<p>It seems that IRC for many people has been replaced by many other services such as Instant Messaging, Social Networks, Blogs and BitTorrent. Yet IRC is still here.</p>
<p>I have put the delink down to the fact that Demon can no longer justify the running costs of such a service in the current economic climate.</p>
<p>It&#8217;s a real sign of the times when Demon, one of the first commercial UK ISPs can no longer support a service it has been running for over 16 years.</p>
<p>Demon has become a household name through the sponsorship of the EFnet IRC server and has become a very reputable ISP because of it, especially to administrators.</p>
<p>Demon has not released any kind of announcement nor has it updated it&#8217;s site to reflect the change and as I am not a Demon customer they have refused to comment on the situation.</p>
<p>Is this the end for EFnet UK? or Is this the start of the <a href="http://irchelp.org/irchelp/networks/efnetsux.html">end for EFnet</a>?  I hope not&#8230;</p>
<p>I&#8217;ve decided to start making steps in the right direction and so I&#8217;ve setup a website and mailing list called <a href="http://www.efnet.org.uk/">EFnet UK</a>.</p>
<p>If you would like to be part of EFnet UK, please join the <a href="http://efnet.org.uk/mailman/listinfo/efnetuk_efnet.org.uk">EFnet UK mailing list</a>.</p>
<p>EFnet needs a new sponsor for a UK IRC server and we need your help to get one. Maybe you can help.</p>
<p>Thanks.</p>
<p><strong>Update 09/10/09:</strong> Multiplay is now sponsoring a new EFnet UK server. <a href="http://stats.efnet.org/servers/view/?sid=8&amp;show=motd">efnet.demon.co.uk</a> is dead, long live <a href="http://stats.efnet.org/servers/view/?sid=127&amp;show=motd">efnet.multiplay.co.uk</a>. Thanks goes to <a href="http://twitter.com/jamesoff">@JamesOff</a>.</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/lame-botnet' rel='bookmark' title='Permanent Link: Lame Botnet'>Lame Botnet</a> <small>Yes, my botnet is pretty lame, but it&#8217;s also kinda...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/efnet-uk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lame Botnet</title>
		<link>http://www.hm2k.com/posts/lame-botnet</link>
		<comments>http://www.hm2k.com/posts/lame-botnet#comments</comments>
		<pubDate>Fri, 04 Sep 2009 11:23:25 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[botnet]]></category>
		<category><![CDATA[efnet]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[harry.tcl]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[TCL]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=491</guid>
		<description><![CDATA[Yes, my botnet is pretty lame, but it&#8217;s also kinda cool. I&#8217;m not talking about anything bad though.
My botnet is an eggdrop botnet that I use on the EFnet IRC network and it runs a script I called &#8220;lame&#8221;.

The script my botnet uses written in tcl was originally created by unknownd, but has since stopped [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/eticket' rel='bookmark' title='Permanent Link: eTicket'>eTicket</a> <small>For the past few weeks I have been mostly working...</small></li>
<li><a href='http://www.hm2k.com/posts/worldtime-tcl' rel='bookmark' title='Permanent Link: worldtime.tcl'>worldtime.tcl</a> <small>Sometimes you need to know the time somewhere else in...</small></li>
<li><a href='http://www.hm2k.com/posts/hm2ks-code-repository' rel='bookmark' title='Permanent Link: HM2K&#8217;s code repository'>HM2K&#8217;s code repository</a> <small>HM2K&#8217;s code repository is now open for business! This repository...</small></li>
<li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Yes, my botnet is pretty lame, but it&#8217;s also kinda cool. I&#8217;m not talking about anything bad though.</p>
<p>My botnet is an <a href="http://en.wikipedia.org/wiki/Eggdrop">eggdrop</a> botnet that I use on the <a href="http://www.efnet.org/">EFnet</a> <a href="http://en.wikipedia.org/wiki/IRC">IRC</a> network and it runs a script I called &#8220;lame&#8221;.</p>
<p><span id="more-491"></span></p>
<p>The script my botnet uses written in <a href="http://www.tcl.tk/">tcl</a> was originally created by unknownd, but has since stopped development.</p>
<p>I know that he stopped development because not only did I speak to him before he quit IRC, but <a href="http://web.archive.org/web/*/http://unknownd.daer.net/">all</a> <a href="http://web.archive.org/web/*/http://home.no.net/unknownd/">his</a> <a href="http://web.archive.org/web/*/www.unknownd.net">sites</a> are no longer available.</p>
<blockquote><p>UnKnownD &#8211; unknownd@dialdown.the.switch.uten.net parted #serialz on October 3 2001 2:24:31pm</p></blockquote>
<p>The script was originally called &#8220;<a href="http://www.google.com/search?q=harry.tcl">harry.tcl</a>&#8220;, but it had a <a href="http://forum.egghelp.org/viewtopic.php?p=80267">few bugs</a>, so I decided to fix them and call it lame.</p>
<p>Don&#8217;t get me wrong, it&#8217;s a fantastic script, but what I had was pretty lame, as it was just a hacked up version of someone else&#8217;s script but I only used it for my own personal botnet, so it didn&#8217;t really matter.</p>
<p>However, I now realise that it is actually better than the original <em>harry.tcl</em> because of the bugs I have fixed and the tweaks I added.</p>
<p>A few people over the years have shown a little interest in my botnet script, so I think it&#8217;s about time that I released it.</p>
<p><em>So where do I get the goodies?</em></p>
<p>I&#8217;ve setup a project hosting on Google Code as &#8220;<a href="http://lamebotnet.googlecode.com/">lamebotnet</a>&#8220;.</p>
<p>There&#8217;s no &#8220;release&#8221; as such yet, but you can get the files you need <a href="http://lamebotnet.googlecode.com/svn/trunk/">here</a>, you only need to really follow the instructions in the<a href="http://lamebotnet.googlecode.com/svn/trunk/readme.txt"> readme</a> file.</p>
<p>Don&#8217;t forget to configure your &#8220;<a href="http://lamebotnet.googlecode.com/svn/trunk/botnet">botnet</a>&#8221; file, otherwise your bots won&#8217;t know where to connect.</p>
<p>I am aware that by releasing the script I may make myself more vulnerable to exploitation and people may <a href="http://code.google.com/p/lamebotnet/issues/list">point out issues or bugs</a> I wasn&#8217;t aware of, but hey, I&#8217;m all for improvement and look forward to fixing them.</p>
<p>Of course, this is assuming there even are any issues, there may not be, I&#8217;ve run this since about 2001 and had no major issues yet, so my hopes are pretty high.</p>
<p>Enjoy!</p>
<p><em>PS. Think of your own naming scheme for your botnet, I&#8217;m already using the muppets!</em></p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/eticket' rel='bookmark' title='Permanent Link: eTicket'>eTicket</a> <small>For the past few weeks I have been mostly working...</small></li>
<li><a href='http://www.hm2k.com/posts/worldtime-tcl' rel='bookmark' title='Permanent Link: worldtime.tcl'>worldtime.tcl</a> <small>Sometimes you need to know the time somewhere else in...</small></li>
<li><a href='http://www.hm2k.com/posts/hm2ks-code-repository' rel='bookmark' title='Permanent Link: HM2K&#8217;s code repository'>HM2K&#8217;s code repository</a> <small>HM2K&#8217;s code repository is now open for business! This repository...</small></li>
<li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/lame-botnet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HM2K&#8217;s code repository</title>
		<link>http://www.hm2k.com/posts/hm2ks-code-repository</link>
		<comments>http://www.hm2k.com/posts/hm2ks-code-repository#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:19:43 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[AutoIT]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[hm2k]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[mIRC Script]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[TCL]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=429</guid>
		<description><![CDATA[HM2K&#8217;s code repository is now open for business!
This repository is a collection of scripts and code i&#8217;ve written in various languages such as mIRC Script, Perl, PHP, TCL, AutoIT, JavaScript, Shell, VB Script and Batch.
You can find the project here.
You may browse the code here.
You can raise issues here.
At the moment there&#8217;s only mIRC scripts [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/suphp-and-phps' rel='bookmark' title='Permanent Link: suPHP and .phps PHP code highlighting support'>suPHP and .phps PHP code highlighting support</a> <small>Today a user on one of my web servers asked...</small></li>
<li><a href='http://www.hm2k.com/posts/recording-an-irc-channel-on-windows' rel='bookmark' title='Permanent Link: Recording an IRC channel on Windows'>Recording an IRC channel on Windows</a> <small>Recently Matt Cutts posted an article on his blog about...</small></li>
<li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
<li><a href='http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>HM2K&#8217;s code repository is now open for business!</p>
<p><em>This repository is a collection of scripts and code i&#8217;ve written in various languages such as mIRC Script, Perl, PHP, TCL, AutoIT, JavaScript, Shell, VB Script and Batch.<span id="more-429"></span></em></p>
<p>You can find the project <a href="http://code.google.com/p/hm2k/">here</a>.</p>
<p>You may browse the code <a href="http://code.google.com/p/hm2k/source/browse/#svn/trunk/code">here</a>.</p>
<p>You can raise issues <a href="http://code.google.com/p/hm2k/issues/list">here</a>.</p>
<p>At the moment there&#8217;s only mIRC scripts and PHP code, but I hope to eventually upload all my code here.</p>
<p>There are also no downloads, as I feel most people can comfortably browse the code or use SVN. Although I may add specific downloads on request.</p>
<p>Watch this space.</p>
<p>I hope you find this useful!</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/suphp-and-phps' rel='bookmark' title='Permanent Link: suPHP and .phps PHP code highlighting support'>suPHP and .phps PHP code highlighting support</a> <small>Today a user on one of my web servers asked...</small></li>
<li><a href='http://www.hm2k.com/posts/recording-an-irc-channel-on-windows' rel='bookmark' title='Permanent Link: Recording an IRC channel on Windows'>Recording an IRC channel on Windows</a> <small>Recently Matt Cutts posted an article on his blog about...</small></li>
<li><a href='http://www.hm2k.com/posts/weather-tcl' rel='bookmark' title='Permanent Link: weather.tcl'>weather.tcl</a> <small>Today, after I decided to hang out in #eggtcl on...</small></li>
<li><a href='http://www.hm2k.com/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/hm2ks-code-repository/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a FreeBSD socks proxy server for use with mIRC</title>
		<link>http://www.hm2k.com/posts/freebsd-socks-proxy-for-mirc</link>
		<comments>http://www.hm2k.com/posts/freebsd-socks-proxy-for-mirc#comments</comments>
		<pubDate>Thu, 18 Sep 2008 03:51:48 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=220</guid>
		<description><![CDATA[I&#8217;m getting fed up with my current IRC BNC software. At the moment I&#8217;m using psyBNC, which means I have to connect to it like you would an IRC server, then issue commands to that to tell it to connect to the IRC server of your choice.
I no longer need the features of psyBNC and [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/configuring-a-freebsd-irc-shell-server' rel='bookmark' title='Permanent Link: Configuring a FreeBSD IRC Shell Server'>Configuring a FreeBSD IRC Shell Server</a> <small>This is a brief guide created to help configure a...</small></li>
<li><a href='http://www.hm2k.com/posts/freebsd-62-usrports-no-such-file-or-directory' rel='bookmark' title='Permanent Link: FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;'>FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;</a> <small>I recently setup a new FreeBSD 6.2 server, only to...</small></li>
<li><a href='http://www.hm2k.com/posts/why-i-registered-mirc' rel='bookmark' title='Permanent Link: Why I registered mIRC'>Why I registered mIRC</a> <small> For those that don&#8217;t know&#8230; mIRC is communication software,...</small></li>
<li><a href='http://www.hm2k.com/posts/ftp-server-for-windows' rel='bookmark' title='Permanent Link: FTP server for windows'>FTP server for windows</a> <small>I have been on the lookout for a decent FTP...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting fed up with my current IRC BNC software. At the moment I&#8217;m using psyBNC, which means I have to connect to it like you would an IRC server, then issue commands to that to tell it to connect to the IRC server of your choice.</p>
<p>I no longer need the features of psyBNC and decided that there must be a better way.</p>
<p>At first I started looking at other, more basic BNC software, but then worked out that they work in very much the same way as psyBNC in the fact that you have to first connect to it, then tell it where to connect to.</p>
<p>So I thought&#8230; What about a socks5 proxy?</p>
<p><span id="more-220"></span></p>
<p>My BNC currently runs on my FreeBSD server, which I use for my IRC activity as it has plenty of IPs and lots of Vhosts.</p>
<p>mIRC can connect to an IRC Server through a Socks4, Socks5, or Proxy firewall.</p>
<p>In mIRC the fields the Firewall/Proxy dialogue box are as follows: Firewall Support &lt;None|Server|DCC|Both&gt;; Protocol &lt;Socks4|Socks5|Proxy&gt;; Hostname; User ID; Password; Port.</p>
<p>Judging by this, what I need is some kind of Socks daemon/server that has the ability to allow for a username or user id and a password.</p>
<p>I had a look at using OpenSSH&#8217;s Socks compatible dynamic forwarding by doing the following:</p>
<blockquote><p>ssh -D&lt;port&gt; user@hostname</p></blockquote>
<p>However, I discovered that the hostname was required, and I could not connect to any host on demand as expected.</p>
<p>So I decided to look at <a href="http://www.freshports.org/search.php?stype=shortdescription&amp;method=match&amp;query=socks">FreshPorts for Socks</a> software, there are a few options&#8230;</p>
<ul>
<li>3proxy &#8211; russian software, not a fan of this, it lacks documentation and support</li>
<li>csocks &#8211; i386 only, no good on x64 machines</li>
<li>nylon &#8211; seems pretty neat, tested it out, it has no options for username/password auth</li>
<li>p5-Socks &#8211; a perl module, not a daemon</li>
<li>proxy-connect &#8211; lacks proper maintenance</li>
<li>prtunnel &#8211; poor documentation, doesn&#8217;t appear to do the task I want</li>
<li>socks5 &#8211; &#8220;NEC has a funky license for this software&#8221;</li>
<li>ss5 &#8211; bingo!</li>
<li>tsocks &#8211; &#8220;Allow non SOCKS aware applications to use SOCKS without modification&#8221; &#8212; not what I want.</li>
</ul>
<p><a href="http://ss5.sourceforge.net/">ss5</a> appears to be what I am looking for&#8230;</p>
<blockquote><p><code class="code">cd /usr/ports/net/ss5/ &amp;&amp; make install clean</code></p></blockquote>
<p>Based on the <a href="http://linux.die.net/man/1/ss5">ss5 manual page</a> I decided to create a ss5.conf file, which looked like this:</p>
<blockquote><p>set SS5_SOCKS_USER hm2k<br />
set SS5_SOCKS_PORT 33333<br />
set SS5_SOCKS_ADDR rofl.name<br />
set SS5_PASSWORD_FILE ~/ss5/ss5.passwd<br />
set SS5_CONFIG_FILE ~/ss5/ss5.conf<br />
set SS5_LOG_FILE ~/ss5/ss5.log<br />
auth 0.0.0.0/0 &#8211; u<br />
permit u 0.0.0.0/0 &#8211; 0.0.0.0/0 &#8211; - &#8211; - -</p></blockquote>
<p>Once I&#8217;d done this, I tried to run it. I found that I wasn&#8217;t able to specify a config file meaning I probably wasn&#8217;t able to run this under anything other than root.</p>
<p>One thing I didn&#8217;t understand is that the <a href="http://ss5.sourceforge.net/configuration.htm">ss5 configuration documentation</a> say one of the variables (which the manual says to put into the config file) allows you to specify a config file. Which does not make sense!</p>
<p>So I decided to take a different approach, and coded my own SOCKS5 Server Script in perl&#8230;</p>
<p>I call it <a href="http://sourceforge.net/projects/ssspl">Simple Socks Server for Perl (sss.pl)</a>.</p>
<p>I hope someone else finds my script useful, and with any luck user feedback will drive me to develop it further.</p>
<p>Enjoy!</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/configuring-a-freebsd-irc-shell-server' rel='bookmark' title='Permanent Link: Configuring a FreeBSD IRC Shell Server'>Configuring a FreeBSD IRC Shell Server</a> <small>This is a brief guide created to help configure a...</small></li>
<li><a href='http://www.hm2k.com/posts/freebsd-62-usrports-no-such-file-or-directory' rel='bookmark' title='Permanent Link: FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;'>FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;</a> <small>I recently setup a new FreeBSD 6.2 server, only to...</small></li>
<li><a href='http://www.hm2k.com/posts/why-i-registered-mirc' rel='bookmark' title='Permanent Link: Why I registered mIRC'>Why I registered mIRC</a> <small> For those that don&#8217;t know&#8230; mIRC is communication software,...</small></li>
<li><a href='http://www.hm2k.com/posts/ftp-server-for-windows' rel='bookmark' title='Permanent Link: FTP server for windows'>FTP server for windows</a> <small>I have been on the lookout for a decent FTP...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/freebsd-socks-proxy-for-mirc/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Seen script for mIRC updated</title>
		<link>http://www.hm2k.com/posts/seen-script-for-mirc-updated</link>
		<comments>http://www.hm2k.com/posts/seen-script-for-mirc-updated#comments</comments>
		<pubDate>Wed, 21 May 2008 10:33:18 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[IRC]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=201</guid>
		<description><![CDATA[Looking for someone? huh? Well, look no further, this script is designed to keep log of people quiting, parting, being kicked out of and changing their nick&#8230; It also tells you if they are still on IRC, on a different channel or such, its basically the easiest way to keep track of people. It can [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/longip-script' rel='bookmark' title='Permanent Link: longip perl script'>longip perl script</a> <small>I wanted to create a script that would convert a...</small></li>
<li><a href='http://www.hm2k.com/posts/twitter-for-mirc' rel='bookmark' title='Permanent Link: Twitter for mIRC'>Twitter for mIRC</a> <small>I signed up for Twitter quite some months ago, but...</small></li>
<li><a href='http://www.hm2k.com/posts/why-i-registered-mirc' rel='bookmark' title='Permanent Link: Why I registered mIRC'>Why I registered mIRC</a> <small> For those that don&#8217;t know&#8230; mIRC is communication software,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Looking for someone? huh? Well, look no further, this script is designed to keep log of people quiting, parting, being kicked out of and changing their nick&#8230; It also tells you if they are still on IRC, on a different channel or such, its basically the easiest way to keep track of people. It can now also tell you when someone last spoke.</p>
<p><span id="more-201"></span>History:</p>
<p>Seen v1.1 &#8211; 20/05/08 Lastspoke can work from seen.log now too, added relay so can be used locally, redid input and output, reset your log file<br />
Seen v1.03    &#8211; 09/06/06 now has lastspoke, other functions were fixed too.<br />
Seen v1.02    &#8211; Cleaned up the script, added this file.<br />
Seen v1.01    &#8211; Fixed a few bugs and added new features.<br />
Seen v1.0    &#8211; Initial Public Release &#8211; Basic Code.</p>
<p>Download <a href="http://hm2k.googlecode.com/svn/trunk/code/mirc/seen.mrc">seen.mrc </a></p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/longip-script' rel='bookmark' title='Permanent Link: longip perl script'>longip perl script</a> <small>I wanted to create a script that would convert a...</small></li>
<li><a href='http://www.hm2k.com/posts/twitter-for-mirc' rel='bookmark' title='Permanent Link: Twitter for mIRC'>Twitter for mIRC</a> <small>I signed up for Twitter quite some months ago, but...</small></li>
<li><a href='http://www.hm2k.com/posts/why-i-registered-mirc' rel='bookmark' title='Permanent Link: Why I registered mIRC'>Why I registered mIRC</a> <small> For those that don&#8217;t know&#8230; mIRC is communication software,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/seen-script-for-mirc-updated/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recording an IRC channel on Windows</title>
		<link>http://www.hm2k.com/posts/recording-an-irc-channel-on-windows</link>
		<comments>http://www.hm2k.com/posts/recording-an-irc-channel-on-windows#comments</comments>
		<pubDate>Tue, 22 Apr 2008 13:48:15 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.hm2k.com/?p=188</guid>
		<description><![CDATA[Recently Matt Cutts posted an article on his blog about Recording an IRC channel on Linux/Ubuntu.
However, as you can see his article was all about using the irssi IRC client on Linux/Ubuntu.
I decided that some people may wish to know how to do it on Windows.
Here&#8217;s how&#8230;

There&#8217;s tuns of IRC clients out there for windows, [...]


Related posts:<ol><li><a href='http://www.hm2k.com/posts/twitter-for-mirc' rel='bookmark' title='Permanent Link: Twitter for mIRC'>Twitter for mIRC</a> <small>I signed up for Twitter quite some months ago, but...</small></li>
<li><a href='http://www.hm2k.com/posts/why-i-registered-mirc' rel='bookmark' title='Permanent Link: Why I registered mIRC'>Why I registered mIRC</a> <small> For those that don&#8217;t know&#8230; mIRC is communication software,...</small></li>
<li><a href='http://www.hm2k.com/posts/migrating-from-windows-to-linux' rel='bookmark' title='Permanent Link: Migrating from Windows to Linux'>Migrating from Windows to Linux</a> <small>These days I find myself playing less and less games...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Recently Matt Cutts posted an article on his blog about <a href="http://www.mattcutts.com/blog/recording-an-irc-channel-on-linuxubuntu/">Recording an IRC channel on Linux/Ubuntu</a>.</p>
<p>However, as you can see his article was all about using the irssi IRC client on Linux/Ubuntu.</p>
<p>I decided that some people may wish to know how to do it on Windows.</p>
<p>Here&#8217;s how&#8230;</p>
<p><span id="more-188"></span></p>
<p>There&#8217;s tuns of IRC clients out there for windows, you can even find IRC clients in your web browser, such as Chatzilla in Mozilla and Opera has one too, not only this but you can also get ported versions of Linux clients. Not only that, bug large IRC networks such as EFnet even have their own <a href="http://chat.efnet.org/">webchat</a>.</p>
<p>We&#8217;re not going to use any of these, we&#8217;re going to use the most renowned IRC client in the world: <a href="http://www.mirc.com/">mIRC</a>.</p>
<p>What makes mIRC such a great client is it&#8217;s usability. You&#8217;ll learn this once you start to use it.</p>
<p>Installing mIRC is easy, just <a href="http://www.mirc.com/get.php">download mIRC</a>, run the exe file and follow the simple on screen instructions.</p>
<p>Once installed you need to setup &#8220;logging&#8221;, so go to Tools &gt; Options, then IRC &gt; Logging.</p>
<p>From there you can setup logging to your preferences. If you need help understanding any of this, just hit F1 at any time, and look for the section on Logging.</p>
<p>Mine looks like this:</p>
<p style="text-align: center;"><a href="http://www.hm2k.com/upload/mirc-logging.jpg"><img class="alignnone size-medium wp-image-189" title="mirc-logging" src="http://www.hm2k.com/upload/mirc-logging-300x253.jpg" alt="" width="300" height="253" /></a></p>
<p>Now to connect to a channel, say #SEO on EFnet, with the nickname NOTHM2K, you can do the following:</p>
<blockquote><p>/nick NOTHM2K | /server irc.efnet.net | /join #SEO</p></blockquote>
<p>Once you join the channel the client should start logging straight away.</p>
<p>So what can you actually do with your logs? Well you can view them, search them or generate stats from them. Just like most things you archive.</p>
<p>You can view your logs by doing:</p>
<blockquote><p>//run $mircdirlogs</p>
<p>Note: the double slash is important, it means execute rather than plain text</p></blockquote>
<p>As you will be on the &#8220;EFnet&#8221; network, you will likely see a folder called &#8220;EFnet&#8221;, if you have setup your logging like me, you will find your daily timestamped logs in there. You can get to the folder quickly by doing:</p>
<blockquote><p>//run $+($mircdirlogs,\,$network,\)</p></blockquote>
<p>To open the current log of the channel you&#8217;re currently in you can do:</p>
<blockquote><p>//run $window($active).logfile</p>
<p>Note: Please make sure you have associated .log files with a program otherwise you will get an error and the file will not open.</p></blockquote>
<p>To search through a log file for a specific string of text you can download <a href="http://gnuwin32.sourceforge.net/packages/grep.htm">grep for windows</a> or use <a href="http://technet2.microsoft.com/windowsserver/en/library/2b01d7f5-ab5a-407f-b5ec-f46248289db91033.mspx?mfr=true">findstr</a> which comes with windows. From mIRC do:</p>
<blockquote><p>//run cmd</p></blockquote>
<p>When a command prompt opens from there you can use grep or findstr. We will be using findstr&#8230;</p>
<blockquote><p>findstr /?</p>
<p>Note: This returns the help information</p>
<p>findstr /s /C:&#8221;hello HM2K&#8221; *.log</p>
<p>Note: This will search through all files that end in .log in the current dir and subdirectories for the string &#8220;hello HM2K&#8221;.</p></blockquote>
<p>Or for those that prefer mIRC scripts, here&#8217;s findstr for mIRC&#8230;</p>
<blockquote><p>alias findstr { ; v0.1 by HM2K (Updated: 23/05/08)<br />
if (!$3) { echo -a Usage: /findstr &lt;path&gt; &lt;file-match&gt; &lt;string-match&gt; | halt }<br />
var %win = @findstr<br />
if (!$window(%win)) { window -e %win }<br />
var %files = $findfile($1,$2,0)<br />
var %i = 1<br />
while (%i &lt; %files) {<br />
filter -fwn $findfile($1,$2,%i) %win $+(*,$3,*)<br />
if ($filtered) { aline %win $findfile($1,$2,%i) }<br />
inc %i<br />
}<br />
}</p></blockquote>
<p>To generate stats you need third party software such as <a href="http://www.nic.fi/~mauvinen/mircstats/">mIRCstats</a> or <a href="http://pisg.sourceforge.net/">pisg</a> (recommended), however if you do use pisg, it might make sense to use the <a href="http://www.eggheads.org/">eggdrop</a> or <a href="http://windrop.sourceforge.net/downloads.html">windrop</a> (for windows) IRC bot to generate the logs instead.</p>
<p>There&#8217;s lots and lots of other neat tricks in mIRC for logging (take a look at $findfile) and beyond. I invite you to take a look at some of my <a href="http://www.hm2k.com/projects/mirc-scripts">mIRC scripts</a>, which some of you may find useful.</p>
<p>PS. If you like <a href="http://www.hm2k.com/posts/why-i-registered-mirc">mIRC, please register</a>.</p>


<p>Related posts:<ol><li><a href='http://www.hm2k.com/posts/twitter-for-mirc' rel='bookmark' title='Permanent Link: Twitter for mIRC'>Twitter for mIRC</a> <small>I signed up for Twitter quite some months ago, but...</small></li>
<li><a href='http://www.hm2k.com/posts/why-i-registered-mirc' rel='bookmark' title='Permanent Link: Why I registered mIRC'>Why I registered mIRC</a> <small> For those that don&#8217;t know&#8230; mIRC is communication software,...</small></li>
<li><a href='http://www.hm2k.com/posts/migrating-from-windows-to-linux' rel='bookmark' title='Permanent Link: Migrating from Windows to Linux'>Migrating from Windows to Linux</a> <small>These days I find myself playing less and less games...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.hm2k.com/posts/recording-an-irc-channel-on-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
