about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-05 03:42:04 -0500
committerJune McEnroe <june@causal.agency>2020-02-05 03:42:04 -0500
commit1cf6e29fc465dc9e3633950ede758d4fd1eb644d (patch)
tree321a530e074dacd4c3469df74d20ec3409c6c55e
parentReflow text on window resize (diff)
downloadcatgirl-1cf6e29fc465dc9e3633950ede758d4fd1eb644d.tar.gz
catgirl-1cf6e29fc465dc9e3633950ede758d4fd1eb644d.zip
Send input as raw IRC in <debug>
Diffstat (limited to '')
-rw-r--r--command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/command.c b/command.c
index 76d7d7b..ef27888 100644
--- a/command.c
+++ b/command.c
@@ -20,6 +20,10 @@
 #include "chat.h"
 
 void command(size_t id, char *input) {
+	if (id == Debug) {
+		ircFormat("%s\r\n", input);
+		return;
+	}
 	ircFormat("PRIVMSG %s :%s\r\n", idNames[id], input);
 	struct Message msg = {
 		.nick = self.nick,