X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=include%2Fsupported.h;fp=include%2Fsupported.h;h=9f3a089cd0244d334d31f4523ae41e88023c47a7;hp=0000000000000000000000000000000000000000;hb=0400a5a6479398d82526785c18c0df8bc8b92dce;hpb=d17e10da972ce5776c60b4c317267c6abe0e1ead diff --git a/include/supported.h b/include/supported.h new file mode 100644 index 0000000..9f3a089 --- /dev/null +++ b/include/supported.h @@ -0,0 +1,72 @@ +/* + * IRC - Internet Relay Chat, include/supported.h + * Copyright (C) 1999 Perry Lorier. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * $Id$ + * + * Description: This file has the featureset that ircu announces on connecting + * a client. It's in this .h because it's likely to be appended + * to frequently and s_user.h is included by basically everyone. + */ +#ifndef INCLUDED_supported_h +#define INCLUDED_supported_h + +#include "channel.h" +#include "ircd_defs.h" + +/* + * 'Features' supported by this ircd + */ +#define FEATURES1 \ + "WHOX"\ + " WALLCHOPS"\ + " WALLVOICES"\ + " USERIP"\ + " CPRIVMSG"\ + " CNOTICE"\ + " SILENCE=%i" \ + " MODES=%i" \ + " MAXCHANNELS=%i" \ + " MAXBANS=%i" \ + " NICKLEN=%i" + + +#define FEATURES2 "MAXNICKLEN=%i" \ + " TOPICLEN=%i" \ + " AWAYLEN=%i" \ + " KICKLEN=%i" \ + " CHANNELLEN=%i" \ + " MAXCHANNELLEN=%i" \ + " CHANTYPES=%s" \ + " PREFIX=%s" \ + " STATUSMSG=%s" \ + " CHANMODES=%s" \ + " CASEMAPPING=%s" \ + " NETWORK=%s" + +#define FEATURESVALUES1 feature_int(FEAT_MAXSILES), MAXMODEPARAMS, \ + feature_int(FEAT_MAXCHANNELSPERUSER), \ + feature_int(FEAT_MAXBANS), feature_int(FEAT_NICKLEN) + +#define FEATURESVALUES2 NICKLEN, TOPICLEN, AWAYLEN, TOPICLEN, \ + feature_int(FEAT_CHANNELLEN), CHANNELLEN, \ + (feature_bool(FEAT_LOCAL_CHANNELS) ? "#&" : "#"), "(ov)@+", "@+", \ + (feature_bool(FEAT_OPLEVELS) ? "b,AkU,l,imnpstrDdR" : "b,k,l,imnpstrDdR"), \ + "rfc1459", feature_str(FEAT_NETWORK) + +#endif /* INCLUDED_supported_h */ +