diff options
-rw-r--r-- | app/controllers/users_controller.rb | 6 | ||||
-rw-r--r-- | app/views/users/show.html.erb | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 18497fc..28bdf7b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -22,12 +22,6 @@ class UsersController < ApplicationController flash.now[:alert] = "An error occured while checking if this user is banned from the server!" @ban_json = nil end - - begin - @hostname = Resolv.new.getname(@user.last_ip) - rescue - @hostname = "No hostname found." - end end # SIGNUP diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 8726f8e..cafe726 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -85,7 +85,7 @@ <% if mod? || @user.is?(current_user) %> <tr> <td><b>Last IP</b></td> - <td><%= @user.last_ip %> (<%= @hostname %>)</td> + <td><%= @user.last_ip %></td> </tr> <tr> <td><b>Email</b></td> |