aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-01 09:16:23 +0200
committerPřemysl Janouch <p@janouch.name>2018-08-01 09:17:12 +0200
commitb0f5b8c10db938c7f8d5f3ef4feb55153ceab599 (patch)
tree493523f3b109cd5185e06286812971a5faf340ca
parentd87d533078ada01040fd06d833b7420523b1a133 (diff)
downloadxK-b0f5b8c10db938c7f8d5f3ef4feb55153ceab599.tar.gz
xK-b0f5b8c10db938c7f8d5f3ef4feb55153ceab599.tar.xz
xK-b0f5b8c10db938c7f8d5f3ef4feb55153ceab599.zip
kike: do nothing on equivalent renicks
-rw-r--r--kike.c4
1 files changed, 4 insertions, 0 deletions
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);