summaryrefslogtreecommitdiff
path: root/src/ircd.c
diff options
context:
space:
mode:
authorjantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-29 02:02:44 +0000
committerjantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-29 02:02:44 +0000
commit308d7937ef6feb4dc543bd871979e03f1d6d6fd3 (patch)
tree6846770c6a0a93b7f9dac828654c4b50b1234d6d /src/ircd.c
parent9c2591c20a27391ce5345f67252535d129168520 (diff)
Bug 1001: Added support for internal tracking of +j channel mode (throttling).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@1940 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/ircd.c')
-rw-r--r--src/ircd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 27435993e..d6c777f05 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -113,6 +113,7 @@ void initIrcdProto()
ircdproto.ircd_valid_nick = NULL;
ircdproto.ircd_valid_chan = NULL;
ircdproto.ircd_cmd_ctcp = NULL;
+ ircdproto.ircd_jointhrottle_mode_check = NULL;
}
/* Special function, returns 1 if executed, 0 if not */
@@ -639,6 +640,13 @@ int anope_flood_mode_check(char *value)
return ircdproto.ircd_flood_mode_check(value);
}
+int anope_jointhrottle_mode_check(char *value)
+{
+ if (ircd->jmode)
+ return ircdproto.ircd_jointhrottle_mode_check(value);
+ return 0;
+}
+
void anope_cmd_jupe(char *jserver, char *who, char *reason)
{
ircdproto.ircd_cmd_jupe(jserver, who, reason);
@@ -1137,6 +1145,11 @@ void pmodule_ircd_csmodes(char mode[128])
}
}
+void pmodule_jointhrottle_mode_check(int (*func) (char *value))
+{
+ ircdproto.ircd_jointhrottle_mode_check = func;
+}
+
void pmodule_ircd_useTSMode(int use)
{
UseTSMODE = use;