Ignore:
Timestamp:
06/01/07 11:09:07 (5 years ago)
Author:
wd
Message:

Wow, a fully building ircd mode (so far). Some changes:

  • Updated LOTS of copyright notices.
  • Completed the split of channel and user modes
  • That core 'addon' is completely gone
  • Using hard/soft/post dependencies in what seems to me to be a good way.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/addons/throttle.c

    r804 r806  
    22 * throttle.c: connection throttling. 
    33 *  
    4  * Copyright 2002 the Ithildin Project. 
     4 * Copyright 2002-2007 the Ithildin Project. 
    55 * See the COPYING file for more information on licensing and use. 
    66 *  
     
    1111 */ 
    1212 
    13 #include <ithildin/stand.h> 
     13#include <ithildin/ithildin.h> 
    1414 
    1515#include "ircd.h" 
     
    1919 
    2020MODULE_REGISTER("$Rev$"); 
    21 const char **mdepends = [ 
    22     "ircd", 
    23     "ircd.addon.acl", 
    24     NULL 
    25 ] 
     21const char *mdepends[] = MDEPENDS; 
    2622 
    2723static const char *throttle_acl_type = "throttle"; 
     
    6258static void destroy_throttle(throttle_t *); 
    6359 
    64 HOOK_FUNCTION(throttle_connected_hook); 
     60HOOK_FUNCTION(throttle_connected_stage_hook); 
    6561HOOK_FUNCTION(throttle_conf_hook); 
    6662HOOK_FUNCTION(throttle_timer_hook); 
     
    107103#define THROTTLE_ERRMSG                                                        \ 
    108104    "Your host is trying to (re)connect too fast -- throttled." 
    109 HOOK_FUNCTION(throttle_connected_hook) { 
     105HOOK_FUNCTION(throttle_connected_stage_hook) { 
    110106    connection_t *cp = (connection_t *)data; 
    111107    throttle_t *tp = find_throttle(isock_raddr(cp->sock)); 
Note: See TracChangeset for help on using the changeset viewer.