Fixed m_relay altchan check
authorpk910 <philipp@zoelle1.de>
Sat, 16 Jul 2011 23:02:30 +0000 (01:02 +0200)
committerpk910 <philipp@zoelle1.de>
Sun, 17 Jul 2011 00:06:43 +0000 (02:06 +0200)
ircd/m_relay.c

index fc8e1cd4ce4bb356eefa65d36b1a4e2c91563c28..7d8a6e1abd2730bf0f69b9ba5c7ae64a5558fdce 100644 (file)
@@ -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);
          }