From b0f5b8c10db938c7f8d5f3ef4feb55153ceab599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 1 Aug 2018 09:16:23 +0200 Subject: [PATCH] kike: do nothing on equivalent renicks --- kike.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kike.c b/kike.c index 3a7fa0d..1a4affc 100644 --- a/kike.c +++ b/kike.c @@ -1436,6 +1436,10 @@ irc_handle_nick (const struct irc_message *msg, struct client *c) if (client && client != c) RETURN_WITH_REPLY (c, IRC_ERR_NICKNAMEINUSE, nickname); + // Nothing to do here, let's not annoy roommates + if (c->nickname && !strcmp (c->nickname, nickname)) + return; + if (c->registered) { client_add_to_whowas (c);