mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 11:42:03 -08:00
Allow ^ in nick (irc). Closes #305
This commit is contained in:
parent
cc3c168162
commit
1d414cf2fd
2
vendor/github.com/lrstanley/girc/format.go
generated
vendored
2
vendor/github.com/lrstanley/girc/format.go
generated
vendored
@ -232,7 +232,7 @@ func IsValidNick(nick string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for i := 1; i < len(nick); i++ {
|
for i := 1; i < len(nick); i++ {
|
||||||
if (nick[i] < 0x41 || nick[i] > 0x7D) && (nick[i] < 0x30 || nick[i] > 0x39) && nick[i] != 0x2D {
|
if (nick[i] < 0x41 || nick[i] > 0x7E) && (nick[i] < 0x30 || nick[i] > 0x39) && nick[i] != 0x2D {
|
||||||
fmt.Println(nick[i], i, nick)
|
fmt.Println(nick[i], i, nick)
|
||||||
// a-z, A-Z, 0-9, -, and _\[]{}^|
|
// a-z, A-Z, 0-9, -, and _\[]{}^|
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user