summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-02 00:13:27 -0400
committerJune McEnroe <june@causal.agency>2018-09-02 00:13:27 -0400
commit359b08b33519e88d7e0df54dc2f2813a98437cf5 (patch)
tree54a59dd983965fc44dfe376d06e5afc3bd59d031
parentInclude time.h for time_t in chat.h (diff)
downloadcatgirl-359b08b33519e88d7e0df54dc2f2813a98437cf5.tar.gz
catgirl-359b08b33519e88d7e0df54dc2f2813a98437cf5.zip
Simplify invalid nick messages
-rw-r--r--handle.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/handle.c b/handle.c
index 88edd8d..865bbad 100644
--- a/handle.c
+++ b/handle.c
@@ -125,10 +125,8 @@ static void handlePing(char *prefix, char *params) {
 static void handleReplyErroneousNickname(char *prefix, char *params) {
 	char *mesg;
 	shift(prefix, NULL, NULL, NULL, params, 3, 0, NULL, NULL, &mesg);
-	// FIXME: Better formatting.
-	uiLog(TAG_STATUS, UI_HOT, L"You can't use that name here");
-	uiFmt(TAG_STATUS, UI_HOT, "Sheriff says, \"%s\"", mesg);
-	uiLog(TAG_STATUS, UI_HOT, L"Type /nick <name> to choose a new one");
+	uiFmt(TAG_STATUS, UI_HOT, "You can't use that name here: \"%s\"", mesg);
+	uiLog(TAG_STATUS, UI_COLD, L"Type /nick <name> to choose a new one");
 }
 
 static void handleReplyWelcome(char *prefix, char *params) {
is a bit of a hack but oh well. 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe