<?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>The Intersect &#187; oops</title>
	<atom:link href="http://theintersect.org/category/oops/feed/" rel="self" type="application/rss+xml" />
	<link>http://theintersect.org</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 22:43:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mu bot</title>
		<link>http://theintersect.org/2009/mu-bot/</link>
		<comments>http://theintersect.org/2009/mu-bot/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:57:05 +0000</pubDate>
		<dc:creator>carlin</dc:creator>
				<category><![CDATA[oops]]></category>

		<guid isPermaLink="false">http://theintersect.org/?p=61</guid>
		<description><![CDATA[(Sorry for the bad pun).
One of the limitations of Mubot is that if karma is altered multiple times in a message, only the first alteration is actually made. For example, if someone says: John++ Cameron++ Cromartie-- Mubot only alters John&#8217;s karma (lambdabot would alter all three).
So after I had made the change to fix it, [...]]]></description>
			<content:encoded><![CDATA[<p>(Sorry for the <a href="http://en.wikipedia.org/wiki/Mu_%28negative%29">bad pun</a>).</p>
<p>One of the limitations of Mubot is that if karma is altered multiple times in a message, only the first alteration is actually made. For example, if someone says: <code>John++ Cameron++ Cromartie--</code> Mubot only alters John&#8217;s karma (lambdabot would alter all three).</p>
<p>So after I had made the <a href="http://github.com/carlins/mubot/commit/356d016624866d78b21b65849fc87b733592cf26">change</a> to fix it, but before I restarted the bot, I demonstrated the current problem:</p>
</blockquote>
<p>< carlin> mubot: karma mubot<br />
< mubot> mubot is of an unknown quantity<br />
< carlin> mubot++ mubot++<br />
< carlin> mubot: karma mubot<br />
< mubot> mubot has a karma of 1</p></blockquote>
<p>Restarted the bot and proceeded to demonstrate the fix:</p>
<blockquote><p>-!- mubot [n=zaslon@phoenix.theintersect.org] has joined #perl6<br />
< carlin> mubot: karma mubot<br />
< mubot> mubot has a karma of 1<br />
< carlin> mubot++ mubot++<br />
< carlin> mubot: karma mubot<br />
-!- mubot [n=zaslon@phoenix.theintersect.org] has quit [Read error: 54<br />
          (Connection reset by peer)]</p></blockquote>
<p>This is what the terminal said:</p>
<p><code>:sendak.freenode.net 366 mubot #perl6book :End of /NAMES list.<br />
:carlin!n=carlin@phoenix.theintersect.org PRIVMSG #perl6 :mubot: karma mubot<br />
:carlin!n=carlin@phoenix.theintersect.org PRIVMSG #perl6 :mubot++ mubot++<br />
Segmentation fault</code></p>
<p>Worked fine after I restarted it:</p>
<blockquote><p>< carlin> mubot++ mubot++<br />
< carlin> mubot: karma mubot<br />
< mubot> mubot has a karma of 3<br />
< carlin> \o/</p></blockquote>
<p>I believe the segfault was caused due to the size of the karma.log file (and subsequently the %.karma hash) as I imported every karma entry <a href="http://github.com/carlins/mubot/blob/master/lambdabot-extractor.pl">from</a> <a href="http://github.com/carlins/mubot/blob/master/lambdabot-importer.pl">lambdabot</a> &#8212; About 1700 entries.</p>
<p>I might have to trim out some of the fluff, for example I don&#8217;t think we need to keep track of <code>+++++[>+++++<-]>[>++<-]>'s</code> 1 karma point &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://theintersect.org/2009/mu-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
