Changeset 806 for trunk/ithildin/modules/ircd/chanmodes/strip.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 moved
-
trunk/ithildin/modules/ircd/chanmodes/strip.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_strip.c) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/chanmodes/strip.c
r804 r806 1 1 /* 2 * cmode_strip.c: control-character stripping mode2 * strip.c: control-character stripping mode 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 * … … 16 16 */ 17 17 18 #include <ithildin/ stand.h>18 #include <ithildin/ithildin.h> 19 19 20 20 #include "ircd.h" 21 #include "addons/core.h"22 21 23 22 IDSTRING(rcsid, "$Id$"); 24 23 25 24 MODULE_REGISTER("$Rev$"); 26 27 const char **mdepends = [ 28 "ircd", 29 NULL 30 ] 25 const char *mdepends[] = MDEPENDS; 31 26 32 27 static unsigned char chanmode_strip; … … 36 31 HOOK_FUNCTION(strip_conf_hook); 37 32 38 MODULE_LOADER( cmode_strip) {33 MODULE_LOADER(strip) { 39 34 40 35 if (!get_module_savedata(savelist, "chanmode_strip", &chanmode_strip)) 41 36 chanmode_request('c', &chanmode_strip, CHANMODE_FL_D, 42 "chanmode_flag", "chanmode_flag_query", 0, NULL); 37 chanmode_flag, chanmode_flag_query, 0, NULL); 38 else 39 chanmode_update_funcs(chanmode_strip, chanmode_flag, 40 chanmode_flag_query); 43 41 44 42 add_hook_before(ircd.events.can_send_channel, can_send_strip, NULL); … … 49 47 } 50 48 51 MODULE_UNLOADER( cmode_strip) {49 MODULE_UNLOADER(strip) { 52 50 53 51 if (reload)
Note: See TracChangeset
for help on using the changeset viewer.
