From d87d533078ada01040fd06d833b7420523b1a133 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Wed, 1 Aug 2018 09:09:02 +0200 Subject: kike: code cleanups --- kike.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kike.c b/kike.c index a09e62c..3a7fa0d 100644 --- a/kike.c +++ b/kike.c @@ -1454,8 +1454,7 @@ irc_handle_nick (const struct irc_message *msg, struct client *c) cstr_set (&c->nickname, xstrdup (nickname)); str_map_set (&ctx->users, nickname, c); - if (!c->registered) - irc_try_finish_registration (c); + irc_try_finish_registration (c); } static void @@ -3017,8 +3016,6 @@ static void irc_process_message (const struct irc_message *msg, const char *raw, void *user_data) { - (void) raw; - struct client *c = user_data; if (c->closing_link) return; -- cgit v1.2.3-70-g09d2