home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ircd4652.zip / ircd-df-4.6.5-os2 / include / channel.h < prev    next >
Text File  |  1998-06-06  |  2KB  |  50 lines

  1. /************************************************************************
  2.  *   IRC - Internet Relay Chat, ircd/channel.h
  3.  *   Copyright (C) 1990 Jarkko Oikarinen
  4.  *
  5.  *   This program is free software; you can redistribute it and/or modify
  6.  *   it under the terms of the GNU General Public License as published by
  7.  *   the Free Software Foundation; either version 1, or (at your option)
  8.  *   any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program; if not, write to the Free Software
  17.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. #ifndef    __channel_include__
  21. #define __channel_include__
  22. #define CREATE 1    /* whether a channel should be
  23.                created or just tested for existance */
  24.  
  25. #define    MODEBUFLEN    200
  26.  
  27. #define NullChn    ((aChannel *)0)
  28.  
  29. #define ChannelExists(n)    (find_channel(n, NullChn) != NullChn)
  30.  
  31. #define IsULine(cptr,sptr)    (sptr->flags & FLAGS_ULINE)
  32.  
  33. /* NOTE: Timestamps will be added to MODE-commands, so never make
  34.  * RESYNCMODES and MODEPARAMS higher than MAXPARA-3. DALnet servers
  35.  * before Dreamforge aren't safe with more than six. -Donwulff
  36.  */
  37. #include "msg.h"
  38. #include <string.h>
  39. #include "struct.h"
  40. #include "common.h"
  41. #include "sys.h"
  42. #include "numeric.h"
  43. #include "hash.h"    /* For CHANNELHASHSIZE */
  44. #include "h.h"
  45. #define    MAXMODEPARAMS    (MAXPARA-2)    /* Maximum modes processed */
  46. #define RESYNCMODES    6        /* Max modes per MODE in resync */
  47. #define MODEPARAMS    6        /* Max modes from user */
  48.  
  49. #endif
  50.