From 2a2d42ec80e63ed382908402207651b4eb9951e3 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 21 Jul 2004 20:28:48 +0000 Subject: BUILD : 1.7.4 (270) BUGS : NOTES : Adding +j mlock support for bahamut just before my vacation git-svn-id: svn://svn.anope.org/anope/trunk@270 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@174 5417fbe8-f217-4b02-8779-1006273d7864 --- include/extern.h | 4 ++++ include/services.h | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index fe02b446b..ddbadef45 100644 --- a/include/extern.h +++ b/include/extern.h @@ -143,6 +143,10 @@ E void stick_all(ChannelInfo * ci); E char *cs_get_flood(ChannelInfo * ci); E void cs_set_flood(ChannelInfo * ci, char *value); #endif +#ifdef HAS_JOINFLOOD +E char *cs_get_joinflood(ChannelInfo * ci); +E void cs_set_joinflood(ChannelInfo * ci, char *value); +#endif E char *cs_get_key(ChannelInfo * ci); E void cs_set_key(ChannelInfo * ci, char *value); E char *cs_get_limit(ChannelInfo * ci); diff --git a/include/services.h b/include/services.h index 42dc83dfa..7d6b5490d 100644 --- a/include/services.h +++ b/include/services.h @@ -192,7 +192,8 @@ typedef struct channel_ Channel; #if defined(IRC_BAHAMUT) && !defined(IRC_ULTIMATE3) && !defined(IRC_VIAGRA) && !defined(IRC_RAGE2) # define HAS_NICKIP # define HAS_EXCEPT -# define HAS_SVSHOLD +# define HAS_SVSHOLD +# define HAS_JOINFLOOD # define NICKSERV_MODE "+o" # define CHANSERV_MODE "+o" # define MEMOSERV_MODE "+o" @@ -730,6 +731,9 @@ struct chaninfo_ { #ifdef HAS_LMODE char *mlock_redirect; /* NULL if no +L */ #endif +#ifdef HAS_JOINFLOOD + char *mlock_joinflood; /* NULL if no +j */ +#endif char *entry_message; /* Notice sent on entering channel */ @@ -1254,6 +1258,9 @@ struct channel_ { #ifdef HAS_FMODE char *flood; /* +f; NULL if none */ #endif +#ifdef HAS_JOINFLOOD + char *joinflood; /* +j; NULL if none */ +#endif int32 bancount, bansize; char **bans; @@ -1299,6 +1306,7 @@ struct channel_ { #define CMODE_c 0x00000400 /* Colors can't be used */ #define CMODE_M 0x00000800 /* Non-regged nicks can't send messages */ #define CMODE_O 0x00008000 /* Only opers can join */ +#define CMODE_j 0x02000000 /* Join flood protection */ #endif /* This mode is for IRC_HYBRID servers only. */ -- cgit