kike: do nothing on equivalent renicks

This commit is contained in:
Přemysl Eric Janouch 2018-08-01 09:16:23 +02:00
parent d87d533078
commit b0f5b8c10d
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 4 additions and 0 deletions

4
kike.c
View File

@ -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);