Changeset 806 for trunk/ithildin/modules/ircd/chanmodes/private.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/chanmodes/private.c
r804 r806 1 1 /* 2 * cmode_private.c: Flag mode for 'private' channels.2 * private.c: Flag mode for 'private' channels. 3 3 * 4 * Copyright 2002 the Ithildin Project.4 * Copyright 2002-2007 the Ithildin Project. 5 5 * See the COPYING file for more information on licensing and use. 6 6 * … … 10 10 */ 11 11 12 #include <ithildin/ stand.h>12 #include <ithildin/ithildin.h> 13 13 14 14 #include "ircd.h" 15 #include "addons/core.h"16 15 17 16 IDSTRING(rcsid, "$Id$"); 18 17 19 18 MODULE_REGISTER("$Rev$"); 20 21 const char **mdepends = [ 22 "ircd", 23 NULL 24 ] 19 const char *mdepends[] = MDEPENDS; 25 20 26 21 static unsigned char chanmode_private; 27 22 static HOOK_FUNCTION(can_show_chan_private); 28 23 29 MODULE_LOADER( cmode_private) {24 MODULE_LOADER(private) { 30 25 31 26 if (!get_module_savedata(savelist, "chanmode_private", 32 27 &chanmode_private)) 33 28 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); 35 33 36 34 add_hook(ircd.events.can_see_channel, can_show_chan_private); … … 39 37 } 40 38 41 MODULE_UNLOADER( cmode_private) {39 MODULE_UNLOADER(private) { 42 40 43 41 remove_hook(ircd.events.can_see_channel, can_show_chan_private);
Note: See TracChangeset
for help on using the changeset viewer.
