echo nick change message
This commit is contained in:
parent
a4ab2f3650
commit
e7e641f266
|
@ -55,6 +55,10 @@ module User = struct
|
||||||
`nick_in_use
|
`nick_in_use
|
||||||
else begin
|
else begin
|
||||||
((* TODO: relay NICK message *));
|
((* 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;
|
unregister t;
|
||||||
Hashtbl.add t.router.users key t;
|
Hashtbl.add t.router.users key t;
|
||||||
t.key <- key;
|
t.key <- key;
|
||||||
|
|
Loading…
Reference in New Issue