]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/iplookup.rb
search: gcalc fix
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / iplookup.rb
index a53b16e470f148c74045e5d11001c26a52bd898f..495aa614f61f5657e2be379c0eeec159f04248b9 100644 (file)
@@ -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]}")