summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorChris Gahan <chris@ill-logic.com>2006-03-25 12:16:07 +0000
committerChris Gahan <chris@ill-logic.com>2006-03-25 12:16:07 +0000
commit65a331089b9e179fd87beb579442b1733dfbec8e (patch)
tree29fcb494e8309444db4c4c75964d7e65eef42698 /data/rbot
parente101e9aaed7e1a7f8acdac870fc237275ae30bd2 (diff)
And the bugfix 3 minutes later. :)
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/iplookup.rb8
1 files changed, 6 insertions, 2 deletions
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