<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,6 +45,10 @@ module Isaac
       raw(&quot;PRIVMSG #{recipient} :#{text}&quot;)
     end
 
+    def action(recipient, text)
+      raw(&quot;PRIVMSG #{recipient} :\001ACTION #{text}\001&quot;)
+    end
+
     def join(*channels)
       channels.each {|channel| raw(&quot;JOIN #{channel}&quot;)}
     end
@@ -57,6 +61,10 @@ module Isaac
       raw(&quot;TOPIC #{channel} :#{text}&quot;)
     end
 
+    def kick(channel, user, reason=nil)
+      raw(&quot;KICK #{channel} #{user} :#{reason}&quot;)
+    end
+
     def quit(message=nil)
       command = message ? &quot;QUIT :#{message}&quot; : &quot;QUIT&quot;
       raw command</diff>
      <filename>lib/isaac.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,14 @@ class TestCommands &lt; Test::Unit::TestCase
     assert_equal &quot;PRIVMSG foo :bar baz\r\n&quot;, @server.gets
   end
 
+  test &quot;actions are sent to recipient&quot; do
+    bot = mock_bot {}
+    bot_is_connected
+
+    bot.action &quot;foo&quot;, &quot;bar&quot;
+    assert_equal &quot;PRIVMSG foo :\001ACTION bar\011&quot;
+  end
+
   test &quot;channels are joined&quot; do
     bot = mock_bot {}
     bot_is_connected
@@ -43,6 +51,14 @@ class TestCommands &lt; Test::Unit::TestCase
     assert_equal &quot;TOPIC #foo :bar baz\r\n&quot;, @server.gets
   end
 
+  test &quot;can kick users&quot; do
+    bot = mock_bot {}
+    bot_is_connected
+
+    bot.kick &quot;foo&quot;, &quot;bar&quot;, &quot;bein' a baz&quot;
+    assert_equal &quot;KICK foo bar :bein' a baz&quot;
+  end
+
   test &quot;quits&quot; do
     bot = mock_bot {}
     bot_is_connected</diff>
      <filename>test/test_commands.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>74ba9475bbe0f131adfad9e7c8520f8d00de3339</id>
    </parent>
  </parents>
  <author>
    <name>Danny Tatom</name>
    <email>dannytatom@gmail.com</email>
  </author>
  <url>http://github.com/ichverstehe/isaac/commit/ab55c76d434573dbbcbd6b338bbd0a46728e156b</url>
  <id>ab55c76d434573dbbcbd6b338bbd0a46728e156b</id>
  <committed-date>2009-10-28T17:52:20-07:00</committed-date>
  <authored-date>2009-10-28T17:52:20-07:00</authored-date>
  <message>Added #action and #kick, added tests for both</message>
  <tree>56521c0f4dc944d9ca92c36449d0a6b9a12a51a3</tree>
  <committer>
    <name>Danny Tatom</name>
    <email>dannytatom@gmail.com</email>
  </committer>
</commit>
