From 83e47d0be817a44b923aa6d261a000cdd8353894 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 5 Nov 2014 19:14:33 -0800 Subject: [PATCH] fix banned message --- app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index 2c27a759..43bb1452 100644 --- a/app.rb +++ b/app.rb @@ -1563,9 +1563,9 @@ end def require_unbanned_ip if Site.banned_ip?(request.ip) session[:id] = nil - flash[:error] = 'Your IP address has been banned due to misconduct. '+ + flash[:error] = 'Your IP address has been banned due to misconduct/spam. '+ 'If you believe this to be in error, contact the site admin.' - redirect '/' + return {result: 'error'}.to_json end end