Ignore:
Timestamp:
06/01/07 11:09:07 (5 years ago)
Author:
wd
Message:

Wow, a fully building ircd mode (so far). Some changes:

  • Updated LOTS of copyright notices.
  • Completed the split of channel and user modes
  • That core 'addon' is completely gone
  • Using hard/soft/post dependencies in what seems to me to be a good way.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/addons/hostcrypt.c

    r804 r806  
    22 * hostcrypt.c: usermode based hostname encryption 
    33 *  
    4  * Copyright 2003 the Ithildin Project. 
     4 * Copyright 2003-2007 the Ithildin Project. 
    55 * See the COPYING file for more information on licensing and use. 
    66 *  
     
    1818 */ 
    1919 
    20 #include <ithildin/stand.h> 
     20#include <ithildin/ithildin.h> 
    2121 
    2222#include "ircd.h" 
     
    2525 
    2626MODULE_REGISTER("$Rev$"); 
    27 const char **mdepends = [ 
    28     "ircd", 
    29     "ircd.protocol.rfc1450", 
    30     NULL 
    31 ] 
     27const char *mdepends[] = MDEPENDS; 
    3228 
    3329typedef char *(*hostcrypt_func_t)(client_t *); 
     
    7066    if (!get_module_savedata(savelist, "hostcrypt", &hostcrypt)) { 
    7167        hostcrypt.mdext = create_mdext_item(ircd.mdext.client, HOSTLEN + 1); 
    72         EXPORT_SYM(hostcrypt_usermode_handler); 
    7368        usermode_request('x', &hostcrypt.mode, USERMODE_FL_GLOBAL, -1, 
    74                 "hostcrypt_usermode_handler"); 
     69                hostcrypt_usermode_handler); 
    7570        hostcrypt.see_priv = create_privilege("see-decrypted-host", 
    7671                PRIVILEGE_FL_BOOL, &i64, NULL); 
    77     } else 
     72    } else { 
     73        usermode_update_func(hostcrypt.mode, hostcrypt_usermode_handler); 
    7874        recrypt = true; 
     75    } 
     76 
    7977    hostcrypt.crypter = NULL; 
    8078 
Note: See TracChangeset for help on using the changeset viewer.