about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/handle.c b/handle.c
index 038a300..53e1c5b 100644
--- a/handle.c
+++ b/handle.c
@@ -112,6 +112,16 @@ nick(struct Message *msg, struct Peer *peer)
 				0
 			);
 
+	if (peer->type)
+		announce(
+			peer,
+			":%s!%s@%s NICK %s",
+			getnick(peer),
+			peer->user,
+			peer->host,
+			msg->params[0]
+		);
+
 	user_reg(peer, msg->params[0], NULL, NULL, NULL);
 
 	return 0;