"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/struct.h" between
bahamut-2.1.4.tar.gz and bahamut-2.1.5.tar.gz

About: Bahamut is an Internet Relay Chat Daemon (IRCd) designed for DALnet, one of the major IRC networks in the world.

struct.h  (bahamut-2.1.4):struct.h  (bahamut-2.1.5)
skipping to change at line 59 skipping to change at line 59
#endif #endif
#endif #endif
#ifdef USE_SSL #ifdef USE_SSL
#include <openssl/rsa.h> /* OpenSSL stuff */ #include <openssl/rsa.h> /* OpenSSL stuff */
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/pem.h> #include <openssl/pem.h>
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include "libcrypto-compat.h"
#endif #endif
#define REPORT_DO_DNS_ ":%s NOTICE AUTH :*** Looking up your hostname..." #define REPORT_DO_DNS_ ":%s NOTICE AUTH :*** Looking up your hostname..."
#define REPORT_FIN_DNS_ ":%s NOTICE AUTH :*** Found your hostname" #define REPORT_FIN_DNS_ ":%s NOTICE AUTH :*** Found your hostname"
#define REPORT_FIN_DNSC_ ":%s NOTICE AUTH :*** Found your hostname, cached" #define REPORT_FIN_DNSC_ ":%s NOTICE AUTH :*** Found your hostname, cached"
#define REPORT_FAIL_DNS_ ":%s NOTICE AUTH :*** Couldn't look up your "\ #define REPORT_FAIL_DNS_ ":%s NOTICE AUTH :*** Couldn't look up your "\
"hostname" "hostname"
#define REPORT_DO_ID_ ":%s NOTICE AUTH :*** Checking Ident" #define REPORT_DO_ID_ ":%s NOTICE AUTH :*** Checking Ident"
#define REPORT_FIN_ID_ ":%s NOTICE AUTH :*** Got Ident response" #define REPORT_FIN_ID_ ":%s NOTICE AUTH :*** Got Ident response"
#define REPORT_FAIL_ID_ ":%s NOTICE AUTH :*** No Ident response" #define REPORT_FAIL_ID_ ":%s NOTICE AUTH :*** No Ident response"
skipping to change at line 1193 skipping to change at line 1192
}; };
#endif #endif
/* channel member link structure, used for chanmember chains */ /* channel member link structure, used for chanmember chains */
struct ChanLink struct ChanLink
{ {
struct ChanLink *next; struct ChanLink *next;
aClient *cptr; aClient *cptr;
int flags; int flags;
time_t when; time_t when;
int last_message_number; /* Number of messages sent to channel within max
_messages_time */
time_t last_message_time; /* When last message was sent to channel. -Holbr
ook */
unsigned int banserial; /* used for bquiet cache */ unsigned int banserial; /* used for bquiet cache */
}; };
/* general link structure used for chains */ /* general link structure used for chains */
struct SLink struct SLink
{ {
struct SLink *next; struct SLink *next;
union union
{ {
skipping to change at line 1266 skipping to change at line 1267
time_t jrl_last; /* join rate limit: last use timestamp */ time_t jrl_last; /* join rate limit: last use timestamp */
time_t jrw_last; /* join rate warning: last use timestamp */ time_t jrw_last; /* join rate warning: last use timestamp */
int jrw_debt_ctr; /* join rate warning: in-debt counter */ int jrw_debt_ctr; /* join rate warning: in-debt counter */
int jrw_debt_ts; /* join rate warning: debt begin timestamp */ int jrw_debt_ts; /* join rate warning: debt begin timestamp */
unsigned int banserial; /* used for bquiet cache */ unsigned int banserial; /* used for bquiet cache */
int join_connect_time; /* Number of seconds the user must be online to be able to join */ int join_connect_time; /* Number of seconds the user must be online to be able to join */
int talk_connect_time; /* Number of seconds the user must be online to be able to talk on the channel */ int talk_connect_time; /* Number of seconds the user must be online to be able to talk on the channel */
int talk_join_time; /* Number of seconds the user must be on the cha nnel to be able to tlak on the channel */ int talk_join_time; /* Number of seconds the user must be on the cha nnel to be able to tlak on the channel */
int max_bans; /* Maximum number of bans ops can add (default: MAXBANS) */ int max_bans; /* Maximum number of bans ops can add (default: MAXBANS) */
int max_invites; /* Maximum number of invites ops can add (defaul t: MAXINVITELIST) */ int max_invites; /* Maximum number of invites ops can add (defaul t: MAXINVITELIST) */
int max_messages; /* Maximum number of messages can be sent within
max_messages_time */
int max_messages_time; /* Number of seconds for how many messages can b
e sent, e.g., 5:10, 5 messages in 10 seconds */
char *greetmsg; /* Special greeting message */ char *greetmsg; /* Special greeting message */
int xflags; /* The eXtended channel flags */ int xflags; /* The eXtended channel flags */
}; };
#define TS_CURRENT 5 /* current TS protocol version */ #define TS_CURRENT 5 /* current TS protocol version */
#define TS_MIN 3 /* minimum supported TS protocol version */ #define TS_MIN 3 /* minimum supported TS protocol version */
#define TS_DOESTS 0x20000000 #define TS_DOESTS 0x20000000
#define DoesTS(x) ((x)->tsinfo == TS_DOESTS) #define DoesTS(x) ((x)->tsinfo == TS_DOESTS)
/* Channel Related macros follow */ /* Channel Related macros follow */
/* Channel related flags */ /* Channel related flags */
#define CHFL_CHANOP 0x0001 /* Channel operator */ #define CHFL_CHANOP 0x0001 /* Channel operator */
#define CHFL_VOICE 0x0002 /* the power to speak */ #define CHFL_VOICE 0x0002 /* the power to speak */
#define CHFL_DEOPPED 0x0004 /* deopped by us, modes need to be bounce d */ #define CHFL_DEOPPED 0x0004 /* deopped by us, modes need to be bounce d */
#define CHFL_BANNED 0x0008 /* is banned */ #define CHFL_BANNED 0x0008 /* is banned */
#define CHFL_HALFOP 0x0010 /* channel half-op */
/* ban mask types */ /* ban mask types */
#define MTYP_FULL 0x01 /* mask is nick!user@host */ #define MTYP_FULL 0x01 /* mask is nick!user@host */
#define MTYP_USERHOST 0x02 /* mask is user@host */ #define MTYP_USERHOST 0x02 /* mask is user@host */
#define MTYP_HOST 0x04 /* mask is host only */ #define MTYP_HOST 0x04 /* mask is host only */
/* Channel Visibility macros */ /* Channel Visibility macros */
#define MODE_CHANOP CHFL_CHANOP #define MODE_CHANOP CHFL_CHANOP
skipping to change at line 1362 skipping to change at line 1366
#define XFLAG_EXEMPT_REGISTERED 0x0040 #define XFLAG_EXEMPT_REGISTERED 0x0040
#define XFLAG_EXEMPT_INVITES 0x0080 #define XFLAG_EXEMPT_INVITES 0x0080
#define XFLAG_EXEMPT_OPPED 0x0100 #define XFLAG_EXEMPT_OPPED 0x0100
#define XFLAG_EXEMPT_VOICED 0x0200 #define XFLAG_EXEMPT_VOICED 0x0200
#define XFLAG_HIDE_MODE_LISTS 0x0400 #define XFLAG_HIDE_MODE_LISTS 0x0400
#define XFLAG_USER_VERBOSE 0x0800 #define XFLAG_USER_VERBOSE 0x0800
#define XFLAG_OPER_VERBOSE 0x1000 #define XFLAG_OPER_VERBOSE 0x1000
#define XFLAG_SJR 0x2000 /* Services join request */ #define XFLAG_SJR 0x2000 /* Services join request */
#define XFLAG_NO_NICK_CHANGE 0x4000 #define XFLAG_NO_NICK_CHANGE 0x4000
#define XFLAG_NO_UTF8 0x8000 #define XFLAG_NO_UTF8 0x8000
#define XFLAG_EXEMPT_WEBIRC 0x10000
struct FlagList struct FlagList
{ {
char *option; char *option;
int flag; int flag;
}; };
/* Misc macros */ /* Misc macros */
#define BadPtr(x) (!(x) || (*(x) == '\0')) #define BadPtr(x) (!(x) || (*(x) == '\0'))
skipping to change at line 1524 skipping to change at line 1529
unsigned cidr_plus:1; unsigned cidr_plus:1;
unsigned chan_plus:1; unsigned chan_plus:1;
unsigned serv_plus:1; unsigned serv_plus:1;
unsigned away_plus:1; unsigned away_plus:1;
unsigned check_away:1; unsigned check_away:1;
unsigned check_umode:1; unsigned check_umode:1;
unsigned show_chan:1; unsigned show_chan:1;
unsigned search_chan:1; unsigned search_chan:1;
unsigned ip_show:1; unsigned ip_show:1;
unsigned realhost_show:1; unsigned realhost_show:1;
unsigned maskhost_show:1;
unsigned client_type_plus:1; unsigned client_type_plus:1;
} SOpts; } SOpts;
/* /*
* Send /LIST as long as their output isn't blocking * Send /LIST as long as their output isn't blocking
* and we haven't used 2/3rds of their sendQ * and we haven't used 2/3rds of their sendQ
*/ */
#define IsSendable(x) (!((x)->flags & FLAGS_BLOCKED) && \ #define IsSendable(x) (!((x)->flags & FLAGS_BLOCKED) && \
SBufLength(&(x)->sendQ) < (int) \ SBufLength(&(x)->sendQ) < (int) \
((float) (x)->class->maxsendq / 1.5)) ((float) (x)->class->maxsendq / 1.5))
 End of changes. 6 change blocks. 
1 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)