Changeset 806 for trunk/ithildin/modules/ircd/chanmodes/regonly.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/chanmodes/regonly.c
r804 r806 1 1 /* 2 * cmodes_regonly.c: Registered nick channel restrictions2 * regonly.c: Registered nick channel restrictions 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 * 7 7 * These two modes restrict non-registered users from joining in or speaking in 8 * a channel. They work with the 'regnicks' addon.8 * a channel. They work with the 'regnicks' usermode. 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 #include "addons/umode_reg.h" 14 #include "usermodes/registered.h" 16 15 #include "commands/mode.h" 17 16 … … 19 18 20 19 MODULE_REGISTER("$Rev$"); 21 22 const char **mdepends = [ 23 "ircd", 24 "ircd.addon.umode_reg", 25 NULL 26 ] 20 const char *mdepends[] = MDEPENDS; 27 21 28 22 static struct { … … 34 28 HOOK_FUNCTION(can_join_cmode_R); 35 29 36 MODULE_LOADER( cmodes_regonly) {30 MODULE_LOADER(regonly) { 37 31 38 32 if (!get_module_savedata(savelist, "regonly_chanmodes", 39 33 ®only_chanmodes)) { 40 34 chanmode_request('M', ®only_chanmodes.M, CHANMODE_FL_D, 41 "chanmode_flag", "chanmode_flag_query", 0, NULL);35 chanmode_flag, chanmode_flag_query, 0, NULL); 42 36 chanmode_request('R', ®only_chanmodes.R, CHANMODE_FL_D, 43 "chanmode_flag", "chanmode_flag_query", 0, NULL); 37 chanmode_flag, chanmode_flag_query, 0, NULL); 38 } else { 39 chanmode_update_funcs(regonly_chanmodes.M, chanmode_flag, 40 chanmode_flag_query); 41 chanmode_update_funcs(regonly_chanmodes.R, chanmode_flag, 42 chanmode_flag_query); 44 43 } 45 44 add_hook(ircd.events.can_send_channel, can_send_cmode_M); … … 55 54 } 56 55 57 MODULE_UNLOADER( cmodes_regonly) {56 MODULE_UNLOADER(regonly) { 58 57 59 58 if (reload)
Note: See TracChangeset
for help on using the changeset viewer.
