diff options
author | C. McEnroe | 2020-02-12 19:30:07 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-12 19:30:07 -0500 |
commit | be08880fac556fecf5cc6fbe44eea0be7ec92da7 (patch) | |
tree | c8da7a03dd7ee733b7b5ab8047c115d80e45df08 | |
parent | 05579773c83d876a82416546273766ded72507a4 (diff) |
Only exit on errorneous nick during registration
-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) { |