summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-12 17:03:15 +0100
committerspag <spag@golwen.net>2013-02-12 17:03:15 +0100
commit62f3f7373844185e763e1430926ebf880b0d5cb5 (patch)
tree0d2677e92f9dc03cd92576d5c0242ea88a20caf5 /app/controllers
parente7d1428b749024096b9a22b331d110bcf04f87d1 (diff)
display whois information
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/intruders_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/intruders_controller.rb b/app/controllers/intruders_controller.rb
index eb34f2b..708e11a 100644
--- a/app/controllers/intruders_controller.rb
+++ b/app/controllers/intruders_controller.rb
@@ -5,6 +5,12 @@ class IntrudersController < ApplicationController
def show
@intruder = Intruder.find(params[:id])
+ if ! params[:whois].blank?
+ @whois = @intruder.whois(params[:whois])
+ if @whois.blank?
+ @whois = 'no information'
+ end
+ end
end
def new