ircu2.10.12 pk910 fork
[ircu2.10.12-pk.git] / include / supported.h
1 /*
2  * IRC - Internet Relay Chat, include/supported.h
3  * Copyright (C) 1999 Perry Lorier.
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 2, 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  * $Id: supported.h 1860 2007-12-28 15:52:43Z klmitch $
20  *
21  * Description: This file has the featureset that ircu announces on connecting
22  *              a client.  It's in this .h because it's likely to be appended
23  *              to frequently and s_user.h is included by basically everyone.
24  */
25 #ifndef INCLUDED_supported_h
26 #define INCLUDED_supported_h
27
28 #include "channel.h"
29 #include "ircd_defs.h"
30
31 /* 
32  * 'Features' supported by this ircd
33  */
34 #define FEATURES1 \
35                 "WHOX"\
36                 " WALLCHOPS"\
37                 " WALLVOICES"\
38                 " USERIP"\
39                 " CPRIVMSG"\
40                 " CNOTICE"\
41                 " SILENCE=%i" \
42                 " MODES=%i" \
43                 " MAXCHANNELS=%i" \
44                 " MAXBANS=%i" \
45                 " NICKLEN=%i"
46                 
47
48 #define FEATURES2 "MAXNICKLEN=%i" \
49                 " TOPICLEN=%i" \
50                 " AWAYLEN=%i" \
51                 " KICKLEN=%i" \
52                 " CHANNELLEN=%i" \
53                 " MAXCHANNELLEN=%i" \
54                 " CHANTYPES=%s" \
55                 " PREFIX=%s" \
56                 " STATUSMSG=%s" \
57                 " CHANMODES=%s" \
58                 " CASEMAPPING=%s" \
59                 " NETWORK=%s"
60
61 #define FEATURESVALUES1 feature_int(FEAT_MAXSILES), MAXMODEPARAMS, \
62                         feature_int(FEAT_MAXCHANNELSPERUSER), \
63                         feature_int(FEAT_MAXBANS), feature_int(FEAT_NICKLEN)
64
65 #define FEATURESVALUES2 NICKLEN, TOPICLEN, AWAYLEN, TOPICLEN, \
66                         feature_int(FEAT_CHANNELLEN), CHANNELLEN, \
67                         (feature_bool(FEAT_LOCAL_CHANNELS) ? "#&" : "#"), "(ov)@+", "@+", \
68                         (feature_bool(FEAT_OPLEVELS) ? "b,AkU,al,cCimMnNpstrDdRz" : "b,k,al,cCimMnNpstrDdRz"), \
69                         "rfc1459", feature_str(FEAT_NETWORK)
70
71 #endif /* INCLUDED_supported_h */
72