Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-09-02 02:10:19 UTC

Modified files:
     ircd/m_join.c

Log message:

Whoops, missed a case here.  Fix.

---------------------- diff included ----------------------
Index: ircu2.10/ircd/m_join.c
diff -u ircu2.10/ircd/m_join.c:1.28 ircu2.10/ircd/m_join.c:1.29
--- ircu2.10/ircd/m_join.c:1.28 Thu Sep  1 18:46:28 2005
+++ ircu2.10/ircd/m_join.c      Thu Sep  1 19:10:08 2005
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_join.c,v 1.28 2005/09/02 01:46:28 entrope Exp $
+ * $Id: m_join.c,v 1.29 2005/09/02 02:10:08 entrope Exp $
  */
 
 /*
@@ -259,7 +259,7 @@
         err = ERR_NEEDREGGEDNICK;
       else if (find_ban(sptr, chptr->banlist))
         err = ERR_BANNEDFROMCHAN;
-      else if (*chptr->mode.key && strcmp(chptr->mode.key, key))
+      else if (*chptr->mode.key && (BadPtr(key) || strcmp(chptr->mode.key, 
key)))
         err = ERR_BADCHANNELKEY;
 
       /* An oper with WALK_LCHAN privilege can join a local channel
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to