summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--handle.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/handle.c b/handle.c
index 35c1e5f..ae3dbfa 100644
--- a/handle.c
+++ b/handle.c
@@ -103,7 +103,7 @@ static void handlePing(char *prefix, char *params) {
 	ircFmt("PONG %s\r\n", params);
 }
 
-static void handleReplyErroneousNickname(char *prefix, char *params) {
+static void handleErrorErroneousNickname(char *prefix, char *params) {
 	char *mesg;
 	shift(prefix, NULL, NULL, NULL, params, 3, 0, NULL, NULL, &mesg);
 	uiFmt(TagStatus, UIHot, "You can't use that name here: \"%s\"", mesg);
@@ -140,7 +140,7 @@ static void handleReplyWhoisUser(char *prefix, char *params) {
 	whoisColor = formatColor(user);
 	uiFmt(
 		TagStatus, UIWarm,
-		"\3%d%s\3 is %s@%s \"%s\"",
+		"\3%d%s\3 is %s@%s, \"%s\"",
 		whoisColor, nick, user, host, real
 	);
 }
@@ -182,6 +182,12 @@ static void handleReplyWhoisChannels(char *prefix, char *params) {
 	uiFmt(TagStatus, UIWarm, "\3%d%s\3 is in %s", whoisColor, nick, chans);
 }
 
+static void handleErrorNoSuchNick(char *prefix, char *params) {
+	char *nick, *mesg;
+	shift(prefix, NULL, NULL, NULL, params, 3, 0, NULL, &nick, &mesg);
+	uiFmt(TagStatus, UIWarm, "%s, \"%s\"", mesg, nick);
+}
+
 static void handleJoin(char *prefix, char *params) {
 	char *nick, *user, *chan;
 	shift(prefix, &nick, &user, NULL, params, 1, 0, &chan);
@@ -464,8 +470,9 @@ static const struct {
 	{ "366", handleReplyEndOfNames },
 	{ "372", handleReplyMOTD },
 	{ "375", handleReplyMOTD },
-	{ "432", handleReplyErroneousNickname },
-	{ "433", handleReplyErroneousNickname },
+	{ "401", handleErrorNoSuchNick },
+	{ "432", handleErrorErroneousNickname },
+	{ "433", handleErrorErroneousNickname },
 	{ "JOIN", handleJoin },
 	{ "KICK", handleKick },
 	{ "NICK", handleNick },
td colspan='3' class='logmsg'> No standard base64 encoder so no way to maintain it. * Update Dark.terminalJune McEnroe2019-07-26 | | | | Why are the blobs so much bigger now? * Lighten dark whiteJune McEnroe2019-07-26 | * Add png.3 man pageJune McEnroe2019-07-25 | * Use scheme to style HTMLsJune McEnroe2019-07-25 | * Don't match comments in strings in makeJune McEnroe2019-07-25 | * Generate index.html with links from bin.7June McEnroe2019-07-25 | * Warn when date has changedJune McEnroe2019-07-24 | * Add whenJune McEnroe2019-07-24 | | | | When? Now. * Remove histedit from bitJune McEnroe2019-07-24 | | | | | Decided that I don't really need it and would rather have fewer dependencies. * Add wiki scriptJune McEnroe2019-07-24 | * Add beginning of date calculatorJune McEnroe2019-07-23 | * Handle media copy sequence in shottyJune McEnroe2019-07-20 | | | | This all still feels a bit gross for some reason. * Handle shotty output options more centrallyJune McEnroe2019-07-20 | * Add ^Q to ptee for MC sequenceJune McEnroe2019-07-17 | * Add Adulthood RitesJune McEnroe2019-07-17 | * Add catgirl shottyJune McEnroe2019-07-16 | * Fix SGRs 90 and 100June McEnroe2019-07-16 | * Add up -tJune McEnroe2019-07-15 | * Implement scrolling regionJune McEnroe2019-07-15 | * Add CSI names to shotty -dJune McEnroe2019-07-14 | * Ignore CSI tJune McEnroe2019-07-14 | * Add more info to shotty man pageJune McEnroe2019-07-14 | * Fix OSC PT handlingJune McEnroe2019-07-14 | | | | Undo gone wrong! * Handle OSC in shottyJune McEnroe2019-07-14 | * Add shotty -dJune McEnroe2019-07-14 | * Add shotty -cJune McEnroe2019-07-13 | * Add DL to shottyJune McEnroe2019-07-13 | * Color html rather than bodyJune McEnroe2019-07-12 | | | | | If background-color is only set on body then overscroll in Safari reveals white. * Make author consistent and update URLsJune McEnroe2019-07-12 | * Merge repository text.causal.agencyJune McEnroe2019-07-12 |\ | * Move to www/text.causal.agencyJune McEnroe2019-07-12 | | | * Add "Testing C"June McEnroe2018-12-21 | | | * Add ULOCJune McEnroe2018-12-14 | | | * Use col -b to strip formattingJune McEnroe2018-10-08 | | | | | | | | As suggested in man(1). | * Add CAVEATS to "Pleasant C"June McEnroe2018-10-01 | | | * Add "Pleasant C"June McEnroe2018-09-30 | | | * Add "Writing mdoc"June McEnroe2018-09-27 | |