Changeset 806 for trunk/ithildin/modules/ircd/addons/hostcrypt.c
- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/modules/ircd/addons/hostcrypt.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/addons/hostcrypt.c
r804 r806 2 2 * hostcrypt.c: usermode based hostname encryption 3 3 * 4 * Copyright 2003 the Ithildin Project.4 * Copyright 2003-2007 the Ithildin Project. 5 5 * See the COPYING file for more information on licensing and use. 6 6 * … … 18 18 */ 19 19 20 #include <ithildin/ stand.h>20 #include <ithildin/ithildin.h> 21 21 22 22 #include "ircd.h" … … 25 25 26 26 MODULE_REGISTER("$Rev$"); 27 const char **mdepends = [ 28 "ircd", 29 "ircd.protocol.rfc1450", 30 NULL 31 ] 27 const char *mdepends[] = MDEPENDS; 32 28 33 29 typedef char *(*hostcrypt_func_t)(client_t *); … … 70 66 if (!get_module_savedata(savelist, "hostcrypt", &hostcrypt)) { 71 67 hostcrypt.mdext = create_mdext_item(ircd.mdext.client, HOSTLEN + 1); 72 EXPORT_SYM(hostcrypt_usermode_handler);73 68 usermode_request('x', &hostcrypt.mode, USERMODE_FL_GLOBAL, -1, 74 "hostcrypt_usermode_handler");69 hostcrypt_usermode_handler); 75 70 hostcrypt.see_priv = create_privilege("see-decrypted-host", 76 71 PRIVILEGE_FL_BOOL, &i64, NULL); 77 } else 72 } else { 73 usermode_update_func(hostcrypt.mode, hostcrypt_usermode_handler); 78 74 recrypt = true; 75 } 76 79 77 hostcrypt.crypter = NULL; 80 78
Note: See TracChangeset
for help on using the changeset viewer.
