X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_relay.c;h=7d8a6e1abd2730bf0f69b9ba5c7ae64a5558fdce;hb=888f14529bcb499e8acbcf090360b63e99bc555a;hp=fc8e1cd4ce4bb356eefa65d36b1a4e2c91563c28;hpb=53e9630ab2b73381d6395b7cb04ce50bd672e3ed;p=ircu2.10.12-pk.git diff --git a/ircd/m_relay.c b/ircd/m_relay.c index fc8e1cd..7d8a6e1 100644 --- a/ircd/m_relay.c +++ b/ircd/m_relay.c @@ -230,7 +230,8 @@ signed int ms_relay(struct Client* cptr, struct Client* sptr, signed int parc, c struct Client *acptr; struct Channel *chptr; if(acptr = findNUser(parv[1])) { - if(chptr = FindChannel(parv[3]) && chptr->mode.altchan && + if(IsChannelName(parv[3]) && strIsIrcCh(parv[3]) && + (chptr = FindChannel(parv[3])) && chptr->mode.altchan && IsChannelName(chptr->mode.altchan) && strIsIrcCh(chptr->mode.altchan)) { mode_a_check_altchan(acptr,chptr->mode.altchan); }