From: Matthew Wiggins Date: Wed, 16 Mar 2005 19:12:16 +0000 (+0000) Subject: fixed ssl channel bug across multiple servers X-Git-Tag: rubiks-ircd-1-0-6~17 X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=7714af4746d88511d48b8e988b09bdd2e1eb98fb;p=rubiks-ircd.git fixed ssl channel bug across multiple servers --- diff --git a/src/channel.c b/src/channel.c index dca10df..d8a92f8 100644 --- a/src/channel.c +++ b/src/channel.c @@ -18,7 +18,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: channel.c,v 1.3 2005/01/14 07:50:01 mwiggins Exp $ */ +/* $Id: channel.c,v 1.4 2005/03/16 19:12:16 mwiggins Exp $ */ #include "struct.h" #include "common.h" @@ -971,7 +971,7 @@ int can_send(aClient *cptr, aChannel *chptr, char *msg) if ((chptr->mode.mode & MODE_NOCOLOR) && msg_has_colors(msg)) return (ERR_NOCOLORSONCHAN); #ifdef USE_SSL - if ((chptr->mode.mode & MODE_SSL) && !IsSSL(cptr)) + if ((chptr->mode.mode & MODE_SSL) && !IsUmodeS(cptr)) return (MODE_SSL); #endif if (MyClient(cptr) && is_banned(cptr, chptr, NULL)) @@ -992,7 +992,7 @@ int can_send(aClient *cptr, aChannel *chptr, char *msg) if ((chptr->mode.mode & MODE_MODREG) && !IsRegNick(cptr)) return (ERR_NEEDREGGEDNICK); #ifdef USE_SSL - if ((chptr->mode.mode & MODE_SSL) && !IsSSL(cptr)) + if ((chptr->mode.mode & MODE_SSL) && !IsUmodeS(cptr)) return (MODE_SSL); #endif }