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 moved

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/chanmodes/strip.c

    r804 r806  
    11/* 
    2  * cmode_strip.c: control-character stripping mode 
     2 * strip.c: control-character stripping mode 
    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 *  
     
    1616 */ 
    1717 
    18 #include <ithildin/stand.h> 
     18#include <ithildin/ithildin.h> 
    1919 
    2020#include "ircd.h" 
    21 #include "addons/core.h" 
    2221 
    2322IDSTRING(rcsid, "$Id$"); 
    2423 
    2524MODULE_REGISTER("$Rev$"); 
    26  
    27 const char **mdepends = [ 
    28     "ircd", 
    29     NULL 
    30 ] 
     25const char *mdepends[] = MDEPENDS; 
    3126 
    3227static unsigned char chanmode_strip; 
     
    3631HOOK_FUNCTION(strip_conf_hook); 
    3732 
    38 MODULE_LOADER(cmode_strip) { 
     33MODULE_LOADER(strip) { 
    3934 
    4035    if (!get_module_savedata(savelist, "chanmode_strip", &chanmode_strip)) 
    4136        chanmode_request('c', &chanmode_strip, CHANMODE_FL_D, 
    42                 "chanmode_flag", "chanmode_flag_query", 0, NULL); 
     37                chanmode_flag, chanmode_flag_query, 0, NULL); 
     38    else 
     39        chanmode_update_funcs(chanmode_strip, chanmode_flag, 
     40                chanmode_flag_query); 
    4341 
    4442    add_hook_before(ircd.events.can_send_channel, can_send_strip, NULL); 
     
    4947} 
    5048 
    51 MODULE_UNLOADER(cmode_strip) { 
     49MODULE_UNLOADER(strip) { 
    5250     
    5351    if (reload) 
Note: See TracChangeset for help on using the changeset viewer.