diff --git a/Changes b/Changes index d9cd1eb33..819d35ab2 100644 --- a/Changes +++ b/Changes @@ -970,3 +970,4 @@ - Did the same for /(G)ZLINE *@hostmask (should be *@ipmask), this already was a warning in 3.2.3, and is an error now in 3.2.4. - Little /STATS v tweak: should display 'v' in output, not 'V'. Reported by Robby22 (#2700). +- Fixed complex command aliases not working properly, patch from Nazzy (#2722). diff --git a/src/s_svs.c b/src/s_svs.c index 217f0ff46..b3f2cc8e1 100644 --- a/src/s_svs.c +++ b/src/s_svs.c @@ -417,15 +417,15 @@ int ret; aChannel *chptr; if ((chptr = find_channel(format->nick, NULL))) { - if (!can_send(sptr, chptr, parv[1], 0)) + if (!can_send(sptr, chptr, output, 0)) { - if (alias->spamfilter && (ret = dospamfilter(sptr, parv[1], SPAMF_CHANMSG, chptr->chname, 0, NULL)) < 0) + if (alias->spamfilter && (ret = dospamfilter(sptr, output, SPAMF_CHANMSG, chptr->chname, 0, NULL)) < 0) return ret; sendto_channelprefix_butone_tok(sptr, sptr, chptr, PREFIX_ALL, MSG_PRIVATE, TOK_PRIVATE, chptr->chname, - parv[1], 0); + output, 0); return 0; } }