коммит произвёл
George Goldberg
родитель
9e5ec7d09d
Коммит
e8b8ef394b
@@ -565,6 +565,7 @@ var restrictedUsernames = []string{
|
|||||||
"all",
|
"all",
|
||||||
"channel",
|
"channel",
|
||||||
"matterbot",
|
"matterbot",
|
||||||
|
"system",
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsValidUsername(s string) bool {
|
func IsValidUsername(s string) bool {
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ var usernames = []struct {
|
|||||||
{"spin'punch", false},
|
{"spin'punch", false},
|
||||||
{"spin*punch", false},
|
{"spin*punch", false},
|
||||||
{"all", false},
|
{"all", false},
|
||||||
|
{"system", false},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestValidUsername(t *testing.T) {
|
func TestValidUsername(t *testing.T) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user