mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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:
parent
47d668bca1
commit
b181cdfb1e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user