Changeset 806 for trunk/ithildin/modules/ircd/chanmodes/operonly.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/chanmodes/operonly.c
r804 r806 1 1 /* 2 * cmode_operonly.c: Operator-only access limiter for channels.2 * operonly.c: Operator-only access limiter for 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 * … … 8 8 */ 9 9 10 #include <ithildin/ stand.h>10 #include <ithildin/ithildin.h> 11 11 12 12 #include "ircd.h" 13 #include "addons/core.h"14 13 15 14 IDSTRING(rcsid, "$Id$"); 16 15 17 16 MODULE_REGISTER("$Rev$"); 18 19 const char **mdepends = [ 20 "ircd", 21 NULL 22 ] 17 const char *mdepends[] = MDEPENDS; 23 18 24 19 static unsigned char chanmode_operonly; … … 26 21 HOOK_FUNCTION(can_join_cmode_O); 27 22 28 MODULE_LOADER( cmode_operonly) {23 MODULE_LOADER(operonly) { 29 24 30 25 if (!get_module_savedata(savelist, "chanmode_operonly", 31 26 &chanmode_operonly)) 32 27 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); 34 32 35 33 add_hook(ircd.events.can_join_channel, can_join_cmode_O); … … 38 36 } 39 37 40 MODULE_UNLOADER( cmode_operonly) {38 MODULE_UNLOADER(operonly) { 41 39 42 40 if (reload)
Note: See TracChangeset
for help on using the changeset viewer.
