s2s: resolve nick collisions by timestamp (force-rename loser to its UUID, SAVE) instead of killing; services always keep their nick
This commit is contained in:
parent
767ecb3471
commit
d4a7043d10
3 changed files with 108 additions and 10 deletions
|
|
@ -340,6 +340,7 @@ impl Server {
|
|||
certfp,
|
||||
account: None,
|
||||
signon: now(),
|
||||
nick_ts: now(),
|
||||
addr,
|
||||
port: local_port,
|
||||
registered: false,
|
||||
|
|
@ -1192,6 +1193,7 @@ mod tests {
|
|||
certfp: None,
|
||||
account: None,
|
||||
signon: 0,
|
||||
nick_ts: 0,
|
||||
addr: "127.0.0.1:1".parse().unwrap(),
|
||||
port: 6667,
|
||||
registered: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue