From 888f14529bcb499e8acbcf090360b63e99bc555a Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 17 Jul 2011 01:02:30 +0200 Subject: [PATCH] Fixed m_relay altchan check --- ircd/m_relay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.20.1