Changeset 806 for trunk/ithildin/modules/ircd/chanmodes/filter.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/chanmodes/filter.c
r804 r806 1 1 /* 2 * cmode_filter.c: control-character filter mode2 * filter.c: control-character filter 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 * … … 9 9 */ 10 10 11 #include <ithildin/ stand.h>11 #include <ithildin/ithildin.h> 12 12 13 13 #include "ircd.h" 14 #include "addons/core.h"15 14 16 15 IDSTRING(rcsid, "$Id$"); 17 16 18 17 MODULE_REGISTER("$Rev$"); 19 20 const char **mdepends = [ 21 "ircd", 22 NULL 23 ] 18 const char *mdepends[] = MDEPENDS; 24 19 25 20 static unsigned char chanmode_filter; … … 29 24 HOOK_FUNCTION(filter_conf_hook); 30 25 31 MODULE_LOADER( cmode_filter) {26 MODULE_LOADER(filter) { 32 27 33 28 if (!get_module_savedata(savelist, "chanmode_filter", &chanmode_filter)) 34 29 chanmode_request('c', &chanmode_filter, CHANMODE_FL_D, 35 "chanmode_flag", "chanmode_flag_query", 0, NULL); 30 chanmode_flag, chanmode_flag_query, 0, NULL); 31 else 32 chanmode_update_funcs(chanmode_filter, chanmode_flag, 33 chanmode_flag_query); 36 34 37 35 add_hook_before(ircd.events.can_send_channel, can_send_filter, NULL); … … 49 47 } 50 48 51 MODULE_UNLOADER( cmode_filter) {49 MODULE_UNLOADER(filter) { 52 50 53 51 if (reload) … … 63 61 } 64 62 65 #define ANSI_CHAR '\033'66 #define BLINK_CHAR '\006'67 #define BOLD_CHAR '\002'68 #define COLOR_CHAR '\003'69 #define INVERSE_CHAR '\026'70 #define UNDERLINE_CHAR '\037'63 #define ANSI_CHAR '\033' 64 #define BLINK_CHAR '\006' 65 #define BOLD_CHAR '\002' 66 #define COLOR_CHAR '\003' 67 #define INVERSE_CHAR '\026' 68 #define UNDERLINE_CHAR '\037' 71 69 72 70 HOOK_FUNCTION(filter_conf_hook) {
Note: See TracChangeset
for help on using the changeset viewer.
