about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-12 19:30:07 -0500
committerJune McEnroe <june@causal.agency>2020-02-12 19:30:07 -0500
commitbe08880fac556fecf5cc6fbe44eea0be7ec92da7 (patch)
treec8da7a03dd7ee733b7b5ab8047c115d80e45df08
parentAdd 378 to list of WHOIS responses (diff)
downloadcatgirl-be08880fac556fecf5cc6fbe44eea0be7ec92da7.tar.gz
catgirl-be08880fac556fecf5cc6fbe44eea0be7ec92da7.zip
Only exit on errorneous nick during registration
Diffstat (limited to '')
-rw-r--r--handle.c9
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) {