1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 05:43:13 +02:00

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.
This commit is contained in:
Bram Matthys
2019-11-24 20:23:34 +01:00
parent 72e0f1a8fb
commit a0a8b6b4eb
+1 -1
View File
@@ -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;