kike: code cleanups
This commit is contained in:
parent
3c47e5b354
commit
d87d533078
5
kike.c
5
kike.c
|
@ -1454,8 +1454,7 @@ irc_handle_nick (const struct irc_message *msg, struct client *c)
|
||||||
cstr_set (&c->nickname, xstrdup (nickname));
|
cstr_set (&c->nickname, xstrdup (nickname));
|
||||||
str_map_set (&ctx->users, nickname, c);
|
str_map_set (&ctx->users, nickname, c);
|
||||||
|
|
||||||
if (!c->registered)
|
irc_try_finish_registration (c);
|
||||||
irc_try_finish_registration (c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -3017,8 +3016,6 @@ static void
|
||||||
irc_process_message (const struct irc_message *msg,
|
irc_process_message (const struct irc_message *msg,
|
||||||
const char *raw, void *user_data)
|
const char *raw, void *user_data)
|
||||||
{
|
{
|
||||||
(void) raw;
|
|
||||||
|
|
||||||
struct client *c = user_data;
|
struct client *c = user_data;
|
||||||
if (c->closing_link)
|
if (c->closing_link)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue