Bug 278763 - Remove last quater of IP addresses when banning.

ChatZilla only.
r=silver
p=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch)
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-12-25 22:35:23 +00:00
parent 47d668bca1
commit b181cdfb1e

View File

@ -3095,6 +3095,8 @@ function usr_banmask()
var hostmask = this.host;
if (!/^\d+\.\d+\.\d+\.\d+$/.test(hostmask))
hostmask = hostmask.replace(/^[^.]+/, "*");
else
hostmask = hostmask.replace(/[^.]+$/, "*");
return "*!" + this.name + "@" + hostmask;
}