Never send PRIVMSG to TagStatus or TagVerbose

master
Curtis McEnroe 2018-09-13 22:10:14 -04:00
parent 0d7854c0d4
commit ede343431f
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 2 additions and 1 deletions

View File

@ -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;