Changeset 806 for trunk/ithildin/modules/ircd/addons/throttle.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/modules/ircd/addons/throttle.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/addons/throttle.c
r804 r806 2 2 * throttle.c: connection throttling. 3 3 * 4 * Copyright 2002 the Ithildin Project.4 * Copyright 2002-2007 the Ithildin Project. 5 5 * See the COPYING file for more information on licensing and use. 6 6 * … … 11 11 */ 12 12 13 #include <ithildin/ stand.h>13 #include <ithildin/ithildin.h> 14 14 15 15 #include "ircd.h" … … 19 19 20 20 MODULE_REGISTER("$Rev$"); 21 const char **mdepends = [ 22 "ircd", 23 "ircd.addon.acl", 24 NULL 25 ] 21 const char *mdepends[] = MDEPENDS; 26 22 27 23 static const char *throttle_acl_type = "throttle"; … … 62 58 static void destroy_throttle(throttle_t *); 63 59 64 HOOK_FUNCTION(throttle_connected_ hook);60 HOOK_FUNCTION(throttle_connected_stage_hook); 65 61 HOOK_FUNCTION(throttle_conf_hook); 66 62 HOOK_FUNCTION(throttle_timer_hook); … … 107 103 #define THROTTLE_ERRMSG \ 108 104 "Your host is trying to (re)connect too fast -- throttled." 109 HOOK_FUNCTION(throttle_connected_ hook) {105 HOOK_FUNCTION(throttle_connected_stage_hook) { 110 106 connection_t *cp = (connection_t *)data; 111 107 throttle_t *tp = find_throttle(isock_raddr(cp->sock));
Note: See TracChangeset
for help on using the changeset viewer.
