mirror of
https://github.com/exane/not-gwent-online
synced 2025-08-20 05:27:38 +00:00
limit user name to 20 chars
This commit is contained in:
@@ -51,6 +51,7 @@ var User = (function(){
|
||||
}
|
||||
|
||||
r.setName = function(name) {
|
||||
name = name.slice(0, 20);
|
||||
console.log("user name changed from %s to %s", this._name, name);
|
||||
this._name = name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user