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/filter.c

    r804 r806  
    11/* 
    2  * cmode_filter.c: control-character filter mode 
     2 * filter.c: control-character filter 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 *  
     
    99 */ 
    1010 
    11 #include <ithildin/stand.h> 
     11#include <ithildin/ithildin.h> 
    1212 
    1313#include "ircd.h" 
    14 #include "addons/core.h" 
    1514 
    1615IDSTRING(rcsid, "$Id$"); 
    1716 
    1817MODULE_REGISTER("$Rev$"); 
    19  
    20 const char **mdepends = [ 
    21     "ircd", 
    22     NULL 
    23 ] 
     18const char *mdepends[] = MDEPENDS; 
    2419 
    2520static unsigned char chanmode_filter; 
     
    2924HOOK_FUNCTION(filter_conf_hook); 
    3025 
    31 MODULE_LOADER(cmode_filter) { 
     26MODULE_LOADER(filter) { 
    3227 
    3328    if (!get_module_savedata(savelist, "chanmode_filter", &chanmode_filter)) 
    3429        chanmode_request('c', &chanmode_filter, CHANMODE_FL_D, 
    35                 "chanmode_flag", "chanmode_flag_query", 0, NULL); 
     30                chanmode_flag, chanmode_flag_query, 0, NULL); 
     31    else 
     32        chanmode_update_funcs(chanmode_filter, chanmode_flag, 
     33                chanmode_flag_query); 
    3634 
    3735    add_hook_before(ircd.events.can_send_channel, can_send_filter, NULL); 
     
    4947} 
    5048 
    51 MODULE_UNLOADER(cmode_filter) { 
     49MODULE_UNLOADER(filter) { 
    5250     
    5351    if (reload) 
     
    6361} 
    6462 
    65 #define ANSI_CHAR        '\033' 
    66 #define BLINK_CHAR        '\006' 
    67 #define BOLD_CHAR        '\002' 
    68 #define COLOR_CHAR        '\003' 
    69 #define INVERSE_CHAR        '\026' 
    70 #define UNDERLINE_CHAR        '\037' 
     63#define ANSI_CHAR       '\033' 
     64#define BLINK_CHAR      '\006' 
     65#define BOLD_CHAR       '\002' 
     66#define COLOR_CHAR      '\003' 
     67#define INVERSE_CHAR    '\026' 
     68#define UNDERLINE_CHAR  '\037' 
    7169 
    7270HOOK_FUNCTION(filter_conf_hook) { 
Note: See TracChangeset for help on using the changeset viewer.