<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -57,6 +57,11 @@ module Isaac
       raw(&quot;TOPIC #{channel} :#{text}&quot;)
     end
 
+    def quit(message=nil)
+      command = message ? &quot;QUIT :#{message}&quot; : &quot;QUIT&quot;
+      raw command
+    end
+
     def start
       puts &quot;Connecting to #{@config.server}:#{@config.port}&quot; unless @config.environment == :test
       @irc = IRC.new(self, @config)</diff>
      <filename>lib/isaac.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,4 +42,20 @@ class TestCommands &lt; Test::Unit::TestCase
     bot.topic &quot;#foo&quot;, &quot;bar baz&quot;
     assert_equal &quot;TOPIC #foo :bar baz\r\n&quot;, @server.gets
   end
+
+  test &quot;quits&quot; do
+    bot = mock_bot {}
+    bot_is_connected
+
+    bot.quit
+    assert_equal &quot;QUIT\r\n&quot;, @server.gets
+  end
+
+  test &quot;quits with message&quot; do
+    bot = mock_bot {}
+    bot_is_connected
+
+    bot.quit &quot;I'm outta here!&quot;
+    assert_equal &quot;QUIT :I'm outta here!\r\n&quot;, @server.gets
+  end
 end</diff>
      <filename>test/test_commands.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>547f0ad6f6ad0a952d4cbfa5fd2f72107b66e9c9</id>
    </parent>
  </parents>
  <author>
    <name>Harry Vangberg</name>
    <email>harry@vangberg.name</email>
  </author>
  <url>http://github.com/ichverstehe/isaac/commit/6bd372d5ac871c24b85e10558df984222afe88a0</url>
  <id>6bd372d5ac871c24b85e10558df984222afe88a0</id>
  <committed-date>2009-04-25T02:30:45-07:00</committed-date>
  <authored-date>2009-04-25T02:30:45-07:00</authored-date>
  <message>add quit command</message>
  <tree>6c5cf94da7ab7ce3f2101c7fc4cde2bbb09a27f4</tree>
  <committer>
    <name>Harry Vangberg</name>
    <email>harry@vangberg.name</email>
  </committer>
</commit>
