summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorC. McEnroe2020-02-05 03:42:04 -0500
committerC. McEnroe2020-02-05 03:42:04 -0500
commit1cf6e29fc465dc9e3633950ede758d4fd1eb644d (patch)
tree321a530e074dacd4c3469df74d20ec3409c6c55e /command.c
parent42210e079bcdea26261af577d0802fdc4c3d03b6 (diff)
Send input as raw IRC in <debug>
Diffstat (limited to 'command.c')
-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,