summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-17 14:00:08 -0400
committerJune McEnroe <june@causal.agency>2018-08-17 14:00:08 -0400
commit38fc42f03d89693fc7e3951fd7257d394f417a6f (patch)
treede58f141248de2f1f25f1272f865495803490f16 /input.c
parentDon't treat input as command if word contains extra slash (diff)
downloadcatgirl-38fc42f03d89693fc7e3951fd7257d394f417a6f.tar.gz
catgirl-38fc42f03d89693fc7e3951fd7257d394f417a6f.zip
Add UI "heat" for status/messages/pings
Bring back the beeps! Allow pings from notices. Also factor out
dequoting of part/quit messages.
Diffstat (limited to 'input.c')
-rw-r--r--input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/input.c b/input.c
index 997c570..cb0a12c 100644
--- a/input.c
+++ b/input.c
@@ -40,7 +40,7 @@ static void privmsg(struct Tag tag, bool action, const char *mesg) {
 static char *param(const char *command, char **params, const char *name) {
 	char *param = strsep(params, " ");
 	if (param) return param;
-	uiFmt(TAG_STATUS, "%s requires a %s", command, name);
+	uiFmt(TAG_STATUS, UI_WARM, "%s requires a %s", command, name);
 	return NULL;
 }
 
@@ -123,7 +123,7 @@ static void inputView(struct Tag tag, char *params) {
 		if (tag.id != TAG_NONE.id) {
 			uiViewTag(tag);
 		} else {
-			uiFmt(TAG_STATUS, "No view for %s", view);
+			uiFmt(TAG_STATUS, UI_WARM, "No view for %s", view);
 		}
 	}
 }
@@ -178,7 +178,7 @@ void input(struct Tag tag, char *input) {
 		COMMANDS[i].handler(tag, input);
 		return;
 	}
-	uiFmt(TAG_STATUS, "%s isn't a recognized command", command);
+	uiFmt(TAG_STATUS, UI_WARM, "%s isn't a recognized command", command);
 }
 
 void inputTab(void) {