summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-01 09:09:02 +0200
committerPřemysl Janouch <p@janouch.name>2018-08-01 09:16:45 +0200
commitd87d533078ada01040fd06d833b7420523b1a133 (patch)
treecbf40cdea1c622a6416715bdf9b4e6447e2a5217
parent3c47e5b354d36dc4c9117ca5063fa801d32e449f (diff)
downloadxK-d87d533078ada01040fd06d833b7420523b1a133.tar.gz
xK-d87d533078ada01040fd06d833b7420523b1a133.tar.xz
xK-d87d533078ada01040fd06d833b7420523b1a133.zip
kike: code cleanups
-rw-r--r--kike.c5
1 files changed, 1 insertions, 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;