From 3ca08badc288df7ea2d253b8232d767ec38b558e Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Wed, 1 Aug 2018 09:17:45 +0200 Subject: 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. --- kike.c | 1 + 1 file changed, 1 insertion(+) 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)) -- cgit v1.2.3-70-g09d2