<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Usage_en.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -25,10 +25,16 @@ $VERBOSE=true
 
 require 'etc'
 require 'getoptlong'
-require 'rbot/ircbot'
 require 'fileutils'
 require 'rbconfig'
 
+begin
+  require 'rbot/ircbot'
+rescue LoadError =&gt; e
+  puts &quot;Error: couldn't find the rbot/ircbot module for loading\n - did you install rbot using install.rb?&quot;
+  exit 2
+end
+  
 $debug = true
 $version=&quot;0.9.8&quot;
 $opts = Hash.new
@@ -40,8 +46,9 @@ def debug(message=nil)
 end
 
 opts = GetoptLong.new(
-  [ &quot;--debug&quot;, &quot;-d&quot;, GetoptLong::NO_ARGUMENT ],
-  [ &quot;--help&quot;,  &quot;-h&quot;, GetoptLong::OPTIONAL_ARGUMENT ]
+  [&quot;--debug&quot;, &quot;-d&quot;, GetoptLong::NO_ARGUMENT],
+  [&quot;--help&quot;,  &quot;-h&quot;, GetoptLong::OPTIONAL_ARGUMENT],
+  [&quot;--version&quot;, &quot;-v&quot;, GetoptLong::NO_ARGUMENT]
 )
 
 opts.each {|opt, arg|
@@ -49,6 +56,11 @@ opts.each {|opt, arg|
   $opts[opt.sub(/^-+/, &quot;&quot;)] = arg
 }
 
+if ($opts[&quot;version&quot;])
+  puts &quot;rbot #{$version}&quot;
+  exit 0
+end
+
 if(bot = Irc::IrcBot.new(ARGV.shift))
   if($opts[&quot;help&quot;])
     # query bot help from the commandline</diff>
      <filename>bin/rbot</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aabe8920ae1e120587c8e27a62827d28afdc04e5</id>
    </parent>
  </parents>
  <author>
    <name>Tom Gilbert</name>
    <email>tom@linuxbrit.co.uk</email>
  </author>
  <url>http://github.com/jsn/rbot/commit/20b78c45b2e514c9c022e25c7c1d6b0cb0f3769c</url>
  <id>20b78c45b2e514c9c022e25c7c1d6b0cb0f3769c</id>
  <committed-date>2005-07-27T10:20:00-07:00</committed-date>
  <authored-date>2005-07-27T10:20:00-07:00</authored-date>
  <message>more packaging work</message>
  <tree>d367a734ad000f3edd0ba7e56c2a00df1faeb6d7</tree>
  <committer>
    <name>Tom Gilbert</name>
    <email>tom@linuxbrit.co.uk</email>
  </committer>
</commit>
