fixed ssl channel bug across multiple servers
authorMatthew Wiggins <lithium@rubiks.net>
Wed, 16 Mar 2005 19:12:16 +0000 (19:12 +0000)
committerMatthew Wiggins <lithium@rubiks.net>
Wed, 16 Mar 2005 19:12:16 +0000 (19:12 +0000)
src/channel.c

index dca10df..d8a92f8 100644 (file)
@@ -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
         }