diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index 3244f746..a976cd7a 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -531,6 +531,8 @@ sub address_to_mask { $banmask = "*.$1"; } elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) { $banmask = "gateway/$1/$2/*"; + } elsif($address =~ m{^nat/([^/]+)/}) { + $banmask = "nat/$1/*"; } elsif($address =~ m/^([^:]+):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$/) { $banmask = "$1:$2:*"; } else {