echo nick change message

This commit is contained in:
tali 2024-01-08 01:04:53 -05:00
parent a4ab2f3650
commit e7e641f266
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ module User = struct
`nick_in_use
else begin
((* TODO: relay NICK message *));
if is_registered t then
send t (Irc.Msg.make "NICK" [new_nick]
~prefix:(prefix t)
~always_trailing:true);
unregister t;
Hashtbl.add t.router.users key t;
t.key <- key;