From: pk910 Date: Sat, 16 Jul 2011 23:02:30 +0000 (+0200) Subject: Fixed m_relay altchan check X-Git-Tag: WGN5~17 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=888f14529bcb499e8acbcf090360b63e99bc555a Fixed m_relay altchan check --- 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); }