From ede343431f42a35c31a188b1201b9163524e4f82 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 13 Sep 2018 22:10:14 -0400 Subject: [PATCH] Never send PRIVMSG to TagStatus or TagVerbose --- input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/input.c b/input.c index 25e8a0d..7866c5a 100644 --- a/input.c +++ b/input.c @@ -25,6 +25,7 @@ #include "chat.h" static void privmsg(struct Tag tag, bool action, const char *mesg) { + if (tag.id == TagStatus.id || tag.id == TagVerbose.id) return; char *line; int send; asprintf( @@ -180,7 +181,7 @@ void input(struct Tag tag, char *input) { if (!slash) { if (tag.id == TagVerbose.id) { ircFmt("%s\r\n", input); - } else if (tag.id != TagStatus.id) { + } else { privmsg(tag, false, input); } return;