From be08880fac556fecf5cc6fbe44eea0be7ec92da7 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Wed, 12 Feb 2020 19:30:07 -0500 Subject: Only exit on errorneous nick during registration --- handle.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- cgit 1.4.1-2-gfad0