<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,7 @@ class Elbot
 
   def initialize(name)
     @agent = WWW::Mechanize.new
-    @agent.user_agent_alias = 'Mac Safari'
+    @agent.user_agent_alias = 'Linux Mozilla'
     @page = @agent.get('http://www.elbot.com/cgi-bin/elbot.cgi')
 
     form = @page.forms[0]</diff>
      <filename>elbot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -137,7 +137,7 @@ class Irbie
       end
 
       # Is it time for an Oscar quote?
-      if @osc.next_oscar &lt; Time.now &amp;&amp; config[:oscar_disabled] == false
+      if @osc.next_oscar &lt; Time.now &amp;&amp; !config[:oscar_disabled]
         say @osc.quote_oscar(&quot;&quot;)
         @osc.next_oscar = @osc.next_oscar.tomorrow
       end
@@ -220,12 +220,10 @@ class Irbie
 
   # Inner loop of the try method.
   def try_eval s
-
     reset_irb and return [] if s.strip == &quot;exit&quot;
     result = open(&quot;http://tryruby.hobix.com/irb?cmd=#{ CGI.escape(s)}&quot;,
                   {'Cookie' =&gt; &quot;_session_id=#{@session}&quot;}).read rescue &quot;My ruby server is down&quot;
     result[/^Your session has been closed/] ? (reset_irb and try_eval s) : result.split(&quot;\n&quot;).slice(0,20)
-
   end
 
   # Post a url to a del.icio.us account.
@@ -257,17 +255,25 @@ class Irbie
   end
 
   def speak_to_elbot(msg, name)
-    @elbots ||= Hash.new
-    @elbots[name] = @elbots[name] ||  Elbot.new(name.to_s)
-    el = @elbots[name]
-    return el.say( ( msg.gsub((config[:nick]), &quot;Elbot&quot;) ) ).gsub(/elbot/i, config[:nick]).gsub(/&lt;.*?&gt;/, &quot;&quot;)
+    begin
+      @elbots ||= Hash.new
+      @elbots[name] = @elbots[name] ||  Elbot.new(name.to_s)
+      el = @elbots[name]
+      return el.say( ( msg.gsub((config[:nick]), &quot;Elbot&quot;) ) ).gsub(/elbot/i, config[:nick]).gsub(/&lt;.*?&gt;/, &quot;&quot;)
+    rescue
+       return  &quot;My personality server is malfunctioning, please try again later&quot;
+    end
   end
 
   def python(msg, name)
-    @pysessions ||= Hash.new
-    @pysessions[name] = @pysessions[name] ||  Sacrilege.new
-    sacr = @pysessions[name]
-    return sacr.eval(msg)
+    begin
+      @pysessions ||= Hash.new
+      @pysessions[name] = @pysessions[name] ||  Sacrilege.new
+      sacr = @pysessions[name]
+      return sacr.eval(msg)
+    rescue
+      return &quot;My python server is down&quot;
+    end
   end
 
   def add_to_botlist(nick, flags)</diff>
      <filename>irbie.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>245771c6895943c7a22d63bebae1d78781c78fe5</id>
    </parent>
  </parents>
  <author>
    <name>Jonathan Groll</name>
    <email>jonathanjgster@gmail.com</email>
  </author>
  <url>http://github.com/eyesonly/irbie/commit/74cdfeedfac434badfb9187465173af60f216181</url>
  <id>74cdfeedfac434badfb9187465173af60f216181</id>
  <committed-date>2009-04-01T01:47:20-07:00</committed-date>
  <authored-date>2009-04-01T01:47:20-07:00</authored-date>
  <message>Ruby and python working fine, with exception handling</message>
  <tree>8f2fb237c7ecf5cd03edfbe7b863b101830db454</tree>
  <committer>
    <name>Jonathan Groll</name>
    <email>jonathanjgster@gmail.com</email>
  </committer>
</commit>
