From e7e641f2664977e36953a9c27a64d34a2dc8499b Mon Sep 17 00:00:00 2001 From: tali Date: Mon, 8 Jan 2024 01:04:53 -0500 Subject: [PATCH] echo nick change message --- lib/server/router.ml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/server/router.ml b/lib/server/router.ml index 52d7a88..e241053 100644 --- a/lib/server/router.ml +++ b/lib/server/router.ml @@ -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;