X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fiplookup.rb;h=495aa614f61f5657e2be379c0eeec159f04248b9;hb=e3c929ff7f3e2491e7718e1da817d9de83b7bf1b;hp=a53b16e470f148c74045e5d11001c26a52bd898f;hpb=ff949fe1c9dd0c179ecdce9340c04c05242d3a48;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/iplookup.rb b/data/rbot/plugins/iplookup.rb index a53b16e4..495aa614 100644 --- a/data/rbot/plugins/iplookup.rb +++ b/data/rbot/plugins/iplookup.rb @@ -188,24 +188,26 @@ 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 def userip(m, params) + m.reply "not implemented yet" #users = @channels[m.channel].users #m.reply "users = #{users.inspect}" #m.reply @bot.sendq("WHO #{params[:user]}")