From a0a8b6b4ebedb40e6c879534e24564bb6dfeb778 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 24 Nov 2019 20:23:34 +0100 Subject: [PATCH] Fix alias type channel not working properly. Note that the channel needs to exist and needs to be -n now. Previously the logic was the wrong way around which made it message through +n channels and not work if you were actually in the channel. Fun. --- src/aliases.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliases.c b/src/aliases.c index 1022c7330..860e95ba5 100644 --- a/src/aliases.c +++ b/src/aliases.c @@ -110,7 +110,7 @@ void cmd_alias(Client *client, MessageTag *mtags, int parc, char *parv[], char * { char *msg = parv[1]; char *errmsg = NULL; - if (!can_send_to_channel(client, channel, &msg, &errmsg, 0)) + if (can_send_to_channel(client, channel, &msg, &errmsg, 0)) { if (alias->spamfilter && match_spamfilter(client, parv[1], SPAMF_CHANMSG, channel->chname, 0, NULL)) return;