forked from External/ergo
import changes
This commit is contained in:
parent
30f47a9b22
commit
ca62b268b0
16 changed files with 272 additions and 34 deletions
|
|
@ -410,7 +410,11 @@ func (client *Client) SetMode(mode modes.Mode, on bool) bool {
|
|||
|
||||
func (client *Client) SetRealname(realname string) {
|
||||
client.stateMutex.Lock()
|
||||
// TODO: make this configurable
|
||||
client.realname = realname
|
||||
if len(realname) > 64 {
|
||||
client.realname = client.realname[:64]
|
||||
}
|
||||
alwaysOn := client.registered && client.alwaysOn
|
||||
client.stateMutex.Unlock()
|
||||
if alwaysOn {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue