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);