1
0
Fork 0
forked from External/ergo

import changes

This commit is contained in:
Failure 2024-07-24 17:10:22 -07:00
parent 30f47a9b22
commit ca62b268b0
16 changed files with 272 additions and 34 deletions

View file

@ -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 {