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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user