<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,25 +25,18 @@
 require 'rubygems'
 require 'daemons'
 
-def whatstheenv?(envi)
-  if envi != nil
-    return envi
-  elsif envi == nil
-    return 'config'
-  end
-end
-
-ENV_SET = whatstheenv?(ARGV[1])
+ENV_SET = ARGV[1] || 'config'
 
-if ARGV[0].to_s == 'start' or ARGV[0].to_s == 'run'
-  puts &quot;___ Bot running in #{ENV_SET} environnement...&quot;
-  puts &quot;___ You can edit computerbot.rb to use other configs&quot;
-  puts &quot;___ Type 'ruby computerbot.rb stop' to disconnect the bot&quot;
-elsif ARGV[0].to_s == 'restart'
-  puts &quot;___ Bot restarted in #{ENV_SET} environnement...&quot;
-  puts &quot;___ Type 'ruby computerbot.rb stop' to disconnect the bot&quot;
-else
-  puts &quot;___ Bot disconnected.&quot;
+case ARGV[0].to_s
+  when 'start', 'run'
+      puts &quot;___ Bot running in #{ENV_SET} environnement...&quot;
+      puts &quot;___ You can edit computerbot.rb to use other configs&quot;
+      puts &quot;___ Type 'ruby computerbot.rb stop' to disconnect the bot&quot;
+  when 'restart'
+      puts &quot;___ Bot restarted in #{ENV_SET} environnement...&quot;
+      puts &quot;___ Type 'ruby computerbot.rb stop' to disconnect the bot&quot;
+  else
+    puts &quot;___ Bot disconnected.&quot;
 end
 
-Daemons.run('lib/computerbot_lib.rb')
\ No newline at end of file
+Daemons.run('lib/computerbot_lib.rb')</diff>
      <filename>computerbot.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3f3ee0d3540d1217f37613a021c29decbc38c017</id>
    </parent>
  </parents>
  <author>
    <name>Ruben Fonseca</name>
    <email>root@cpan.org</email>
  </author>
  <url>http://github.com/webcracy/computerbot/commit/127d5f207732a93d75ed65f921c0f597a6c20530</url>
  <id>127d5f207732a93d75ed65f921c0f597a6c20530</id>
  <committed-date>2008-10-16T04:05:08-07:00</committed-date>
  <authored-date>2008-10-16T04:05:08-07:00</authored-date>
  <message>Cleaned computerbot.rb file</message>
  <tree>d0a246c02f9f8b5953af4056d85fea3336bc16e7</tree>
  <committer>
    <name>Ruben Fonseca</name>
    <email>root@cpan.org</email>
  </committer>
</commit>
