From: Chris Gahan Date: Sat, 25 Mar 2006 12:16:07 +0000 (+0000) Subject: And the bugfix 3 minutes later. :) X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=65a331089b9e179fd87beb579442b1733dfbec8e;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git And the bugfix 3 minutes later. :) --- diff --git a/data/rbot/plugins/iplookup.rb b/data/rbot/plugins/iplookup.rb index a3f8f952..65018bb9 100644 --- a/data/rbot/plugins/iplookup.rb +++ b/data/rbot/plugins/iplookup.rb @@ -190,8 +190,12 @@ class IPLookupPlugin < Plugin def iplookup(m, params) reply = "" if params[:domain] - ip = Resolv.getaddress(params[:domain]) - reply += "(#{params[:domain]} = #{ip}) " + begin + ip = Resolv.getaddress(params[:domain]) + reply += "(#{params[:domain]} = #{ip}) " + rescue => e + m.reply "#{e.message}" + end else ip = params[:ip] end