mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-25 21:06:37 +02:00
3ad6878865
is now 5000 lines / 31 days. For unregistered it is 200 lines / 31 days. Previous setting was 200 lines / 7 days for both. Admins can tweak these settings, see: https://www.unrealircd.org/docs/Set_block#set::history More code to deal with corner issues will follow later. UnrealIRCd module coders [!]: This also changes the channel mode API conv_param. You can use the UNREAL_VERSION_TIME >= 202120 condition to detect this. Eg: #if UNREAL_VERSION_TIME < 202120 int my_conv_param(char *para, Client *client); #else int my_conv_param(char *para, Client *client, Channel *channel); #endif
73 lines
1.8 KiB
C
73 lines
1.8 KiB
C
/*
|
|
**
|
|
** version.h
|
|
** UnrealIRCd
|
|
** $Id$
|
|
*/
|
|
#ifndef __versioninclude
|
|
#define __versioninclude 1
|
|
|
|
/*
|
|
* Utility macros to convert version number constants to strings.
|
|
* Delayed expansion requires two macros to work. See:
|
|
*
|
|
* $ info '(cpp) Stringification'
|
|
*/
|
|
#define _macro_to_str(n) #n
|
|
#define macro_to_str(n) _macro_to_str(n)
|
|
|
|
|
|
/*
|
|
* Mark of settings
|
|
*/
|
|
#ifdef DEBUGMODE
|
|
#define DEBUGMODESET "+(debug)"
|
|
#else
|
|
#define DEBUGMODESET ""
|
|
#endif
|
|
/**/
|
|
#ifdef DEBUG
|
|
#define DEBUGSET "(Debug)"
|
|
#else
|
|
#define DEBUGSET ""
|
|
#endif
|
|
/**/
|
|
#define COMPILEINFO DEBUGMODESET DEBUGSET
|
|
|
|
/* Version info follows
|
|
* Please be sure to update ALL fields when changing the version.
|
|
* Also don't forget to bump the protocol version every release.
|
|
*/
|
|
|
|
/**
|
|
* The following code concerns UNREAL_VERSION_GENERATION,
|
|
* UNREAL_VERSION_MAJOR, and UNREAL_VERSION_MINOR.
|
|
*
|
|
* These UNREAL_VERSION_* macros can be used so (3rd party) modules
|
|
* can easily distinguish versions.
|
|
*
|
|
* They are set during ./configure, so update ./configure.ac's AC_INIT
|
|
* line upon a new release.
|
|
*/
|
|
|
|
/** Year + week of the year (ISO week number, with Monday as first day of week)
|
|
* Can be useful if the above 3 versionids are insufficient for you (eg: you want to support CVS).
|
|
* This is updated automatically on the CVS server every Monday. so don't touch it.
|
|
*/
|
|
#define UNREAL_VERSION_TIME 202120
|
|
|
|
#define UnrealProtocol 5002
|
|
#define PATCH1 macro_to_str(UNREAL_VERSION_GENERATION)
|
|
#define PATCH2 "." macro_to_str(UNREAL_VERSION_MAJOR)
|
|
#define PATCH3 "." macro_to_str(UNREAL_VERSION_MINOR)
|
|
#define PATCH4 UNREAL_VERSION_SUFFIX
|
|
#define PATCH5 ""
|
|
#define PATCH6 ""
|
|
#define PATCH7 ""
|
|
#define PATCH8 COMPILEINFO
|
|
#define PATCH9 ""
|
|
/* release header */
|
|
#define Rh BASE_VERSION
|
|
#define VERSIONONLY PATCH1 PATCH2 PATCH3 PATCH4 PATCH5 PATCH6 PATCH7
|
|
#endif /* __versioninclude */
|