<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -60,6 +60,10 @@ module Isaac
       raw(&quot;TOPIC #{channel} :#{text}&quot;)
     end
 
+    def mode(channel, option)
+      raw(&quot;MODE #{channel} #{option}&quot;)
+    end
+
     def kick(channel, user, reason=nil)
       raw(&quot;KICK #{channel} #{user} :#{reason}&quot;)
     end</diff>
      <filename>lib/isaac.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ class TestCommands &lt; Test::Unit::TestCase
     bot_is_connected
 
     bot.action &quot;foo&quot;, &quot;bar&quot;
-    assert_equal &quot;PRIVMSG foo :\001ACTION bar\011&quot;
+    assert_equal &quot;PRIVMSG foo :\001ACTION bar\011\r\n&quot;, @server.gets
   end
 
   test &quot;channels are joined&quot; do
@@ -51,12 +51,20 @@ class TestCommands &lt; Test::Unit::TestCase
     assert_equal &quot;TOPIC #foo :bar baz\r\n&quot;, @server.gets
   end
 
+  test &quot;modes can be set&quot; do
+    bot = mock_bot {}
+    bot_is_connected
+
+    bot.mode &quot;#foo&quot;, &quot;+o&quot;
+    assert_equal &quot;MODE #foo +o\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;
+    assert_equal &quot;KICK foo bar :bein' a baz\r\n&quot;, @server.gets
   end
 
   test &quot;quits&quot; do</diff>
      <filename>test/test_commands.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>64cd2481db33acd78854ed7a8022d2fa3e649ed1</id>
    </parent>
  </parents>
  <author>
    <name>Danny Tatom</name>
    <email>dannytatom@gmail.com</email>
  </author>
  <url>http://github.com/ichverstehe/isaac/commit/732b0cd14e72fb7d26a1f2edf0930e574ff29a50</url>
  <id>732b0cd14e72fb7d26a1f2edf0930e574ff29a50</id>
  <committed-date>2009-10-29T18:12:36-07:00</committed-date>
  <authored-date>2009-10-29T18:12:36-07:00</authored-date>
  <message>Added #mode, fixed tests for #action, #kick, #mode</message>
  <tree>05210ece0788a7d3a1e87068f6741e003df75488</tree>
  <committer>
    <name>Danny Tatom</name>
    <email>dannytatom@gmail.com</email>
  </committer>
</commit>
