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

ChatZilla only.
r=silver
p=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch)


git-svn-id: svn://10.0.0.236/trunk@186582 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk
2005-12-25 22:35:23 +00:00
parent 930e428df3
commit b4afb8c3d7

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