summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-07-21 20:28:48 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-07-21 20:28:48 +0000
commit2a2d42ec80e63ed382908402207651b4eb9951e3 (patch)
tree9ae952033dbf0b07d66a66ed8a88892139a16ceb /include
parent9aca21408d1f5ef2219788bbd1c2533cb624fa01 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/extern.h4
-rw-r--r--include/services.h10
2 files changed, 13 insertions, 1 deletions
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. */