diff options
author | June McEnroe <june@causal.agency> | 2020-02-12 19:30:07 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-12 19:30:07 -0500 |
commit | be08880fac556fecf5cc6fbe44eea0be7ec92da7 (patch) | |
tree | c8da7a03dd7ee733b7b5ab8047c115d80e45df08 /handle.c | |
parent | Add 378 to list of WHOIS responses (diff) | |
download | catgirl-be08880fac556fecf5cc6fbe44eea0be7ec92da7.tar.gz catgirl-be08880fac556fecf5cc6fbe44eea0be7ec92da7.zip |
Only exit on errorneous nick during registration
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/handle.c b/handle.c index 69a2e46..2e4f56d 100644 --- a/handle.c +++ b/handle.c @@ -94,7 +94,14 @@ static void handleErrorNicknameInUse(struct Message *msg) { static void handleErrorErroneousNickname(struct Message *msg) { require(msg, false, 3); - errx(EX_CONFIG, "%s: %s", msg->params[1], msg->params[2]); + if (!strcmp(self.nick, "*")) { + errx(EX_CONFIG, "%s: %s", msg->params[1], msg->params[2]); + } else { + uiFormat( + Network, Warm, tagTime(msg), + "%s: %s", msg->params[2], msg->params[1] + ); + } } static void handleCap(struct Message *msg) { |