diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-01 09:17:45 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-08-01 09:17:45 +0200 |
commit | 3ca08badc288df7ea2d253b8232d767ec38b558e (patch) | |
tree | 288dec33593e85006e613e44a847d186ae91768a | |
parent | b0f5b8c10db938c7f8d5f3ef4feb55153ceab599 (diff) | |
download | xK-3ca08badc288df7ea2d253b8232d767ec38b558e.tar.gz xK-3ca08badc288df7ea2d253b8232d767ec38b558e.tar.xz xK-3ca08badc288df7ea2d253b8232d767ec38b558e.zip |
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.
-rw-r--r-- | kike.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) |