summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/iplookup.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/rbot/plugins/iplookup.rb b/data/rbot/plugins/iplookup.rb
index c983b300..495aa614 100644
--- a/data/rbot/plugins/iplookup.rb
+++ b/data/rbot/plugins/iplookup.rb
@@ -188,20 +188,21 @@ class IPLookupPlugin < Plugin
end
def iplookup(m, params)
- debug params
+ reply = ""
if params[:domain].match(/^#{Regexp::Irc::HOSTADDR}$/)
ip = params[:domain]
else
begin
ip = Resolv.getaddress(params[:domain])
- reply += "#{params[:domain]} | "
+ reply << "#{params[:domain]} | "
rescue => e
m.reply "#{e.message}"
return
end
end
- reply += ArinWhois.lookup_info(ip)
+ reply << ArinWhois.lookup_info(ip)
+
m.reply reply
end