summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/input.c b/input.c
index 024941d..77c57cc 100644
--- a/input.c
+++ b/input.c
@@ -83,6 +83,11 @@ static void inputQuit(struct Tag tag, char *params) {
 	ircQuit(params ? params : "Goodbye");
 }
 
+static void inputQuote(struct Tag tag, char *params) {
+	(void)tag;
+	if (params) ircFmt("%s\r\n", params);
+}
+
 static void inputTopic(struct Tag tag, char *params) {
 	if (params) {
 		ircFmt("TOPIC %s :%s\r\n", tag.name, params);
@@ -143,14 +148,12 @@ static void inputOpen(struct Tag tag, char *params) {
 
 static void inputRaw(struct Tag tag, char *params) {
 	(void)tag;
-	if (!self.raw || !params) {
-		self.raw ^= true;
-		uiFmt(
-			TagRaw, UIWarm, "%s window is %s",
-			TagRaw.name, (self.raw ? "enabled" : "disabled")
-		);
-	}
-	if (params) ircFmt("%s\r\n", params);
+	(void)params;
+	self.raw ^= true;
+	uiFmt(
+		TagRaw, UIWarm, "\3%d%s\3 %s raw mode!",
+		colorGen(self.user), self.nick, (self.raw ? "engages" : "disengages")
+	);
 }
 
 static void inputURL(struct Tag tag, char *params) {
@@ -195,6 +198,7 @@ static const struct {
 	{ "/part", inputPart },
 	{ "/query", inputQuery },
 	{ "/quit", inputQuit },
+	{ "/quote", inputQuote },
 	{ "/raw", inputRaw },
 	{ "/topic", inputTopic },
 	{ "/url", inputURL },
pan='3' class='logmsg'> 2018-09-02SendEnv LANGJune McEnroe 2018-08-27Add New Order — TemptationJune McEnroe 2018-08-26Add NetBSD to install.shJune McEnroe 2018-08-24Show hostname in title over SSHJune McEnroe 2018-08-23Alias bc='bc -l'June McEnroe 2018-08-20Update usage of scheme in READMEJune McEnroe 2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe 2018-08-20Generate scheme.hJune McEnroe 2018-08-20Add dependencies on gfx.hJune McEnroe 2018-08-18Add Blondie — Heart of GlassJune McEnroe Why didn't I know about this song? I love it. 2018-08-18Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe type is an alias for whence -v and is more for human consumption. 2018-08-18Cut off path components until right prompt fitsJune McEnroe Keeps paths valid (from somehwere) rather than abrupt truncation. 2018-08-17Add "private" alias to source encrypted fileJune McEnroe Why is there no easy way to *edit* an encrypted file? 2018-08-17Add vim mapping to add a #includeJune McEnroe