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

    r804 r806  
    11/* 
    2  * cmode_operonly.c: Operator-only access limiter for channels. 
     2 * operonly.c: Operator-only access limiter for channels. 
    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 *  
     
    88 */ 
    99 
    10 #include <ithildin/stand.h> 
     10#include <ithildin/ithildin.h> 
    1111 
    1212#include "ircd.h" 
    13 #include "addons/core.h" 
    1413 
    1514IDSTRING(rcsid, "$Id$"); 
    1615 
    1716MODULE_REGISTER("$Rev$"); 
    18  
    19 const char **mdepends = [ 
    20     "ircd", 
    21     NULL 
    22 ] 
     17const char *mdepends[] = MDEPENDS; 
    2318 
    2419static unsigned char chanmode_operonly; 
     
    2621HOOK_FUNCTION(can_join_cmode_O); 
    2722 
    28 MODULE_LOADER(cmode_operonly) { 
     23MODULE_LOADER(operonly) { 
    2924 
    3025    if (!get_module_savedata(savelist, "chanmode_operonly", 
    3126                &chanmode_operonly)) 
    3227        chanmode_request('O', &chanmode_operonly, CHANMODE_FL_D, 
    33                 "chanmode_flag", "chanmode_flag_query", 0, NULL); 
     28                chanmode_flag, chanmode_flag_query, 0, NULL); 
     29    else 
     30        chanmode_update_funcs(chanmode_operonly, chanmode_flag, 
     31                chanmode_flag_query); 
    3432 
    3533    add_hook(ircd.events.can_join_channel, can_join_cmode_O); 
     
    3836} 
    3937 
    40 MODULE_UNLOADER(cmode_operonly) { 
     38MODULE_UNLOADER(operonly) { 
    4139     
    4240    if (reload) 
Note: See TracChangeset for help on using the changeset viewer.