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

    r804 r806  
    11/* 
    2  * cmode_private.c: Flag mode for 'private' channels. 
     2 * private.c: Flag mode for 'private' 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 *  
     
    1010 */ 
    1111 
    12 #include <ithildin/stand.h> 
     12#include <ithildin/ithildin.h> 
    1313 
    1414#include "ircd.h" 
    15 #include "addons/core.h" 
    1615 
    1716IDSTRING(rcsid, "$Id$"); 
    1817 
    1918MODULE_REGISTER("$Rev$"); 
    20  
    21 const char **mdepends = [ 
    22     "ircd", 
    23     NULL 
    24 ] 
     19const char *mdepends[] = MDEPENDS; 
    2520 
    2621static unsigned char chanmode_private; 
    2722static HOOK_FUNCTION(can_show_chan_private); 
    2823 
    29 MODULE_LOADER(cmode_private) { 
     24MODULE_LOADER(private) { 
    3025 
    3126    if (!get_module_savedata(savelist, "chanmode_private", 
    3227                &chanmode_private)) 
    3328        chanmode_request('p', &chanmode_private, CHANMODE_FL_D, 
    34                 "chanmode_flag", "chanmode_flag_query", 0, NULL); 
     29                chanmode_flag, chanmode_flag_query, 0, NULL); 
     30    else 
     31        chanmode_update_funcs(chanmode_private, chanmode_flag, 
     32                chanmode_flag_query); 
    3533 
    3634    add_hook(ircd.events.can_see_channel, can_show_chan_private); 
     
    3937} 
    4038 
    41 MODULE_UNLOADER(cmode_private) { 
     39MODULE_UNLOADER(private) { 
    4240     
    4341    remove_hook(ircd.events.can_see_channel, can_show_chan_private); 
Note: See TracChangeset for help on using the changeset viewer.