<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,7 +39,7 @@ class CommandHandler &lt; EventHandler
       msg[:message][0..0] == '!' || 
       msg[:message]       =~ Regexp.new(&quot;^#{Bot.instance.config['nickname']},&quot;, Regexp::IGNORECASE)
     ) &amp;&amp;
-    msg[:message].gsub(/^!/, '').gsub(Regexp.new(&quot;#{Bot.instance.config['nickname']},\\s*&quot;, Regexp::IGNORECASE), '').split(' ')[0].downcase == @matcher.downcase
+    msg[:message].gsub(/^!/, '').gsub(Regexp.new(&quot;#{Bot.instance.config['nickname']},\\s*&quot;, Regexp::IGNORECASE), '').split(' ')[0].to_s.downcase == @matcher.downcase
     # FIXME - the above should be just done with one regexp to pull out the first non-! non-&lt;bot name&gt; word.
   end
   </diff>
      <filename>event.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f202b296063058c3e74dffa30daeba47ea42e02d</id>
    </parent>
  </parents>
  <author>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </author>
  <url>http://github.com/timriley/campfire-bot/commit/4d506641439787029e9b650f917d1826092d6e6c</url>
  <id>4d506641439787029e9b650f917d1826092d6e6c</id>
  <committed-date>2008-10-23T05:27:19-07:00</committed-date>
  <authored-date>2008-10-23T05:27:19-07:00</authored-date>
  <message>fix bug where the bot would crash on receiving a line with a single exclamation mark on it</message>
  <tree>92d81ee790e569da05b56d1f8f9f38e23ec7dfc4</tree>
  <committer>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </committer>
</commit>
