<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,4 +15,7 @@ class Admins
     end
     retval
   end
+
+  def command com, *args
+  end
 end</diff>
      <filename>Admin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -66,10 +66,25 @@ class Bot
 		nick, ident, host =	parse_host(host)
 		if ( nick &amp;&amp; command_number == &quot;PRIVMSG&quot; )
       arguments =~ /([^ ]*) :(.*)/
+      channel = $~[1]
+      message = $~[2]
 			unless @database.user_exists? nick, ident, host, @server
 				@database.insert_user nick, ident, host, @server
 			end
-			@database.log_message $~[2], nick, ident, host, @server
+      if (@admins.admin?(ident, host)  &amp;&amp; message =~ /^[ ]*!(.*)/)
+        #we want to turn COMMAND arg1 arg2 arg3... into (com, *arg), let's do that now
+        args = Array.new
+        comargs = $~[1]
+        unless comargs =~ /([^ ]*)[ ]+(.*)/
+          @admins.command(comargs, Array.new)
+        end
+        command = $~[1]
+        argstring = $~[2]
+        args = argstring.split(/[ ]+/)
+        @admins.command(command, args) 
+      else #don't log commands sent by the admins to the bot!
+			  @database.log_message message, nick, ident, host, @server
+      end
 		end
   end
 </diff>
      <filename>Bot.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f3b5bb01aa557137901fa26513c4cba301263db8</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Etches</name>
    <email>seadog@mehmoo.com</email>
  </author>
  <url>http://github.com/seadog/ybttre/commit/74b70f441214c294e650146957f6dea007e10ac1</url>
  <id>74b70f441214c294e650146957f6dea007e10ac1</id>
  <committed-date>2008-07-20T22:41:24-07:00</committed-date>
  <authored-date>2008-07-20T22:41:24-07:00</authored-date>
  <message>Added beggingings of ! commands to ybttre</message>
  <tree>5cc20e5966fda065fed91edf079f1969d9003f99</tree>
  <committer>
    <name>Andrew Etches</name>
    <email>seadog@mehmoo.com</email>
  </committer>
</commit>
