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
-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) {
e79fb17e4228d9fb0a10aaba299b15548b&follow=1'>Make safe filling the who bufferJune McEnroe 2018-08-07Add reverse and reset IRC formatting codesJune McEnroe 2018-08-06Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe