summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-01 09:17:45 +0200
committerPřemysl Janouch <p@janouch.name>2018-08-01 09:17:45 +0200
commit3ca08badc288df7ea2d253b8232d767ec38b558e (patch)
tree288dec33593e85006e613e44a847d186ae91768a
parentb0f5b8c10db938c7f8d5f3ef4feb55153ceab599 (diff)
downloadxK-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kike.c b/kike.c
index 1a4affc..baa141f 100644
--- a/kike.c
+++ b/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->realname, xstrdup (realname));
+ c->mode = 0;
unsigned long m;
if (xstrtoul (&m, mode, 10))