From aa77f2ce2fb6ee2959bb068c2aba91843fcdc4bd Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 3 Dec 2014 08:41:37 +0100 Subject: [PATCH] Simplify DoSurgeProtection --- wiki.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wiki.pl b/wiki.pl index 36db1df1..5e0c96f6 100755 --- a/wiki.pl +++ b/wiki.pl @@ -3893,8 +3893,7 @@ sub DoDebug { sub DoSurgeProtection { return unless $SurgeProtection; - my $name = GetParam('username', ''); - $name = GetRemoteHost() if not $name and $SurgeProtection; + my $name = GetParam('username', GetRemoteHost()); return unless $name; ReadRecentVisitors(); AddRecentVisitor($name);