forked from github/kensanata.oddmuse
Simplify DoSurgeProtection
This commit is contained in:
3
wiki.pl
3
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);
|
||||
|
||||
Reference in New Issue
Block a user