diff options
author | June McEnroe <june@causal.agency> | 2020-02-05 03:42:04 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-05 03:42:04 -0500 |
commit | 1cf6e29fc465dc9e3633950ede758d4fd1eb644d (patch) | |
tree | 321a530e074dacd4c3469df74d20ec3409c6c55e /command.c | |
parent | Reflow text on window resize (diff) | |
download | catgirl-1cf6e29fc465dc9e3633950ede758d4fd1eb644d.tar.gz catgirl-1cf6e29fc465dc9e3633950ede758d4fd1eb644d.zip |
Send input as raw IRC in <debug>
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
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, |