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:
parent
b0f5b8c10d
commit
3ca08badc2
1
kike.c
1
kike.c
@ -1479,6 +1479,7 @@ irc_handle_user (const struct irc_message *msg, struct client *c)
|
|||||||
|
|
||||||
cstr_set (&c->username, xstrdup (username));
|
cstr_set (&c->username, xstrdup (username));
|
||||||
cstr_set (&c->realname, xstrdup (realname));
|
cstr_set (&c->realname, xstrdup (realname));
|
||||||
|
c->mode = 0;
|
||||||
|
|
||||||
unsigned long m;
|
unsigned long m;
|
||||||
if (xstrtoul (&m, mode, 10))
|
if (xstrtoul (&m, mode, 10))
|
||||||
|
Loading…
Reference in New Issue
Block a user