mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 15:40:02 +01:00
review fixes
This commit is contained in:
parent
bf1d758de9
commit
36612f6e2d
@ -625,7 +625,7 @@ func (client *Client) SetNames(username, realname string, fromIdent bool) error
|
|||||||
if !fromIdent {
|
if !fromIdent {
|
||||||
limit -= 1 // leave room for the prepended ~
|
limit -= 1 // leave room for the prepended ~
|
||||||
}
|
}
|
||||||
if len(username) > limit {
|
if limit < len(username) {
|
||||||
username = username[:limit]
|
username = username[:limit]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -789,7 +789,7 @@ func (client *Client) AllNickmasks() (masks []string) {
|
|||||||
rawHostname := client.rawHostname
|
rawHostname := client.rawHostname
|
||||||
vhost := client.getVHostNoMutex()
|
vhost := client.getVHostNoMutex()
|
||||||
client.stateMutex.RUnlock()
|
client.stateMutex.RUnlock()
|
||||||
username = strings.ToLower(client.username)
|
username = strings.ToLower(username)
|
||||||
|
|
||||||
if len(vhost) > 0 {
|
if len(vhost) > 0 {
|
||||||
cfvhost, err := Casefold(vhost)
|
cfvhost, err := Casefold(vhost)
|
||||||
|
Loading…
Reference in New Issue
Block a user