kike: reset user modes while processing USER

Since the processing always succeeds and registration cannot be undone,
this doesn't seem to fix any real issue.
This commit is contained in:
Přemysl Eric Janouch 2018-08-01 09:17:45 +02:00
parent b0f5b8c10d
commit 3ca08badc2
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 0 deletions

1
kike.c
View File

@ -1479,6 +1479,7 @@ irc_handle_user (const struct irc_message *msg, struct client *c)
cstr_set (&c->username, xstrdup (username));
cstr_set (&c->realname, xstrdup (realname));
c->mode = 0;
unsigned long m;
if (xstrtoul (&m, mode, 10))