From: Stefan Schantl Date: Wed, 27 Jun 2018 17:12:55 +0000 (+0200) Subject: Events: Allow unblocking of addresses if the are part of the ignore list. X-Git-Tag: 2.0.2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00fed00bf8dedc2799b0206066b0140592899c90;p=people%2Fstevee%2Fguardian.git Events: Allow unblocking of addresses if the are part of the ignore list. Fixes #11247 Signed-off-by: Stefan Schantl --- diff --git a/modules/Events.pm b/modules/Events.pm index 007ad46..2892786 100644 --- a/modules/Events.pm +++ b/modules/Events.pm @@ -137,8 +137,8 @@ sub CheckAction ($$) { return; } - # Check if address should be ignored. - if(&_IsOnIgnoreList($bin_address)) { + # Check if the given command is not "unblock" and the address should be ignored. + if(($command ne "unblock") && (&_IsOnIgnoreList($bin_address))) { # Log message. $logger->Log("info", "Ignoring event for $address, because it is part of the ignore list."); return;