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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user