- Timestamp:
- 06/01/07 11:09:07 (5 years ago)
- Location:
- trunk/ithildin
- Files:
-
- 3 deleted
- 104 edited
- 16 moved
-
build/tests.py (modified) (1 diff)
-
doc/module.txt (modified) (1 diff)
-
doc/style.txt (modified) (6 diffs)
-
include/ithildin/hash.h (modified) (1 diff)
-
lib/module.c (modified) (1 diff)
-
modules/ircd/addons/Makefile (deleted)
-
modules/ircd/addons/acl.c (modified) (9 diffs)
-
modules/ircd/addons/acl.h (modified) (1 diff)
-
modules/ircd/addons/antidrone.c (modified) (2 diffs)
-
modules/ircd/addons/hostcrypt.c (modified) (4 diffs)
-
modules/ircd/addons/hostmask.c (modified) (3 diffs)
-
modules/ircd/addons/quarantine.c (modified) (3 diffs)
-
modules/ircd/addons/quarantine.h (modified) (1 diff)
-
modules/ircd/addons/servicesid.c (modified) (3 diffs)
-
modules/ircd/addons/servicesid.h (modified) (1 diff)
-
modules/ircd/addons/throttle.c (modified) (5 diffs)
-
modules/ircd/chanmodes/filter.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_filter.c) (5 diffs)
-
modules/ircd/chanmodes/operonly.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_operonly.c) (4 diffs)
-
modules/ircd/chanmodes/private.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_private.c) (3 diffs)
-
modules/ircd/chanmodes/registered.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_reg.c) (4 diffs)
-
modules/ircd/chanmodes/registered.h (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_reg.h) (2 diffs)
-
modules/ircd/chanmodes/regonly.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmodes_regonly.c) (4 diffs)
-
modules/ircd/chanmodes/strip.c (moved) (moved from trunk/ithildin/modules/ircd/addons/cmode_strip.c) (4 diffs)
-
modules/ircd/class.c (modified) (1 diff)
-
modules/ircd/class.h (modified) (1 diff)
-
modules/ircd/command.c (modified) (1 diff)
-
modules/ircd/command.h (modified) (1 diff)
-
modules/ircd/commands/Makefile (deleted)
-
modules/ircd/commands/acl.c (modified) (6 diffs)
-
modules/ircd/commands/admin.c (modified) (1 diff)
-
modules/ircd/commands/akill.c (modified) (1 diff)
-
modules/ircd/commands/away.c (modified) (2 diffs)
-
modules/ircd/commands/away.h (modified) (2 diffs)
-
modules/ircd/commands/capab.c (modified) (1 diff)
-
modules/ircd/commands/chatops.c (modified) (1 diff)
-
modules/ircd/commands/connect.c (modified) (1 diff)
-
modules/ircd/commands/die.c (modified) (1 diff)
-
modules/ircd/commands/dns.c (modified) (1 diff)
-
modules/ircd/commands/error.c (modified) (1 diff)
-
modules/ircd/commands/flags.c (modified) (1 diff)
-
modules/ircd/commands/globops.c (modified) (1 diff)
-
modules/ircd/commands/gnotice.c (modified) (1 diff)
-
modules/ircd/commands/helper.c (modified) (2 diffs)
-
modules/ircd/commands/helpops.c (modified) (1 diff)
-
modules/ircd/commands/info.c (modified) (1 diff)
-
modules/ircd/commands/invite.c (modified) (3 diffs)
-
modules/ircd/commands/ison.c (modified) (1 diff)
-
modules/ircd/commands/kick.c (modified) (2 diffs)
-
modules/ircd/commands/kill.c (modified) (1 diff)
-
modules/ircd/commands/links.c (modified) (1 diff)
-
modules/ircd/commands/list.c (modified) (2 diffs)
-
modules/ircd/commands/locops.c (modified) (1 diff)
-
modules/ircd/commands/lusers.c (modified) (1 diff)
-
modules/ircd/commands/mode.c (modified) (1 diff)
-
modules/ircd/commands/mode.h (modified) (1 diff)
-
modules/ircd/commands/module.c (modified) (2 diffs)
-
modules/ircd/commands/motd.c (modified) (1 diff)
-
modules/ircd/commands/names.c (modified) (1 diff)
-
modules/ircd/commands/nick.c (modified) (2 diffs)
-
modules/ircd/commands/notice.c (modified) (1 diff)
-
modules/ircd/commands/oper.c (modified) (1 diff)
-
modules/ircd/commands/part.c (modified) (1 diff)
-
modules/ircd/commands/pass.c (modified) (1 diff)
-
modules/ircd/commands/ping.c (modified) (1 diff)
-
modules/ircd/commands/pong.c (modified) (1 diff)
-
modules/ircd/commands/quit.c (modified) (1 diff)
-
modules/ircd/commands/rehash.c (modified) (1 diff)
-
modules/ircd/commands/samode.c (modified) (2 diffs)
-
modules/ircd/commands/server.c (modified) (1 diff)
-
modules/ircd/commands/services.c (modified) (1 diff)
-
modules/ircd/commands/silence.c (modified) (1 diff)
-
modules/ircd/commands/sjoin.c (modified) (1 diff)
-
modules/ircd/commands/sqline.c (modified) (1 diff)
-
modules/ircd/commands/squit.c (modified) (1 diff)
-
modules/ircd/commands/stats.c (modified) (1 diff)
-
modules/ircd/commands/svinfo.c (modified) (1 diff)
-
modules/ircd/commands/svskill.c (modified) (1 diff)
-
modules/ircd/commands/svsmode.c (modified) (1 diff)
-
modules/ircd/commands/svsnick.c (modified) (1 diff)
-
modules/ircd/commands/time.c (modified) (1 diff)
-
modules/ircd/commands/topic.c (modified) (4 diffs)
-
modules/ircd/commands/topic.h (modified) (1 diff)
-
modules/ircd/commands/trace.c (modified) (1 diff)
-
modules/ircd/commands/user.c (modified) (1 diff)
-
modules/ircd/commands/userhost.c (modified) (1 diff)
-
modules/ircd/commands/version.c (modified) (1 diff)
-
modules/ircd/commands/wallops.c (modified) (1 diff)
-
modules/ircd/commands/watch.c (modified) (2 diffs)
-
modules/ircd/commands/who.c (modified) (2 diffs)
-
modules/ircd/commands/whois.c (modified) (1 diff)
-
modules/ircd/commands/whois.h (modified) (1 diff)
-
modules/ircd/commands/whowas.c (modified) (1 diff)
-
modules/ircd/commands/xinfo.c (modified) (1 diff)
-
modules/ircd/conf.c (modified) (1 diff)
-
modules/ircd/conf.h (modified) (1 diff)
-
modules/ircd/connection.c (modified) (1 diff)
-
modules/ircd/doc/connections.txt (modified) (1 diff)
-
modules/ircd/ircstring.c (modified) (1 diff)
-
modules/ircd/ircstring.h (modified) (1 diff)
-
modules/ircd/privilege.c (modified) (1 diff)
-
modules/ircd/privilege.h (modified) (1 diff)
-
modules/ircd/protocol.c (modified) (1 diff)
-
modules/ircd/protocol.h (modified) (1 diff)
-
modules/ircd/protocols/Makefile (deleted)
-
modules/ircd/protocols/bahamut14.c (modified) (2 diffs)
-
modules/ircd/protocols/dreamforge.c (modified) (2 diffs)
-
modules/ircd/protocols/ithildin1.c (modified) (2 diffs)
-
modules/ircd/protocols/rfc1459.c (modified) (2 diffs)
-
modules/ircd/send.c (modified) (1 diff)
-
modules/ircd/send.h (modified) (1 diff)
-
modules/ircd/server.c (modified) (1 diff)
-
modules/ircd/server.h (modified) (1 diff)
-
modules/ircd/support.c (modified) (1 diff)
-
modules/ircd/support.h (modified) (1 diff)
-
modules/ircd/usermodes/admin.c (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_admin.c) (5 diffs)
-
modules/ircd/usermodes/admin.h (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_admin.h) (1 diff)
-
modules/ircd/usermodes/helper.c (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_helper.c) (5 diffs)
-
modules/ircd/usermodes/helper.h (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_helper.h) (1 diff)
-
modules/ircd/usermodes/registered.c (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_reg.c) (8 diffs)
-
modules/ircd/usermodes/registered.h (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_reg.h) (2 diffs)
-
modules/ircd/usermodes/regonly.c (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_regonly.c) (3 diffs)
-
modules/ircd/usermodes/servicesadmin.c (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_svcadmin.c) (3 diffs)
-
modules/ircd/usermodes/servicesadmin.h (moved) (moved from trunk/ithildin/modules/ircd/addons/umode_svcadmin.h) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/build/tests.py
r790 r806 105 105 # If it is given or if the above didn't work, then try walking the list 106 106 # of prefixes to see if the requisite files are there 107 if path == openssl_prefixes :107 if path == openssl_prefixes or path == [True]: 108 108 if ctx.TryLink(extension = '.c', text = testcode): 109 109 # got it, okay -
trunk/ithildin/doc/module.txt
r490 r806 10 10 ############################################################################### 11 11 12 Basic information for setting up a module: 13 In the module's main file you need two global variables of name 'mheader' 14 and 'mdepends'. Additionally you may have functions to be called at load 15 time and at unload time. 16 17 You will need to include 'ithildin.h' in your module, then do the following: 18 19 MODULE_REGISTER("your module version", "your load function", 20 "your unload function); 21 22 the first value is optional and specifies the version of your module. if it 23 is empty it should be the empty string "" 24 the second and third values are also optional, and specify the symbol names 25 of functions to call when the module is loaded and unloaded. They may be 26 empty if no such functions exist. You must *NOT* use init() and fini() for 27 this! 28 29 Following that, if your module has any dependencies, you should place them 30 in a comment that looks like this: 31 /* 32 @DEPENDENCIES@: module1 module2 module3 ... 33 */ 34 Several lines of that form are acceptable. 35 36 If you need to find a module symbol, you can either use 'module_symbol(mod, 37 name)' if you have the module's structure, or 'lookup_module_symbol(modname, 38 symname)' if you don't have it. 39 40 The initialization function should return an integer value of non-zero if 41 loading was successful, otherwise a value of 0 indicating that the module 42 was NOT successful loading (the module will be closed and dropped in this 43 case, and the unloader *WILL NOT* be called) 12 Holy crap out of date. Check out the echo or ircd modules for 13 simple/complex examples. I owe docs on this. -
trunk/ithildin/doc/style.txt
r578 r806 3 3 # style.txt: guide to recommended programming style/practices 4 4 # 5 # Copyright 2002 the Ithildin Project.5 # Copyright 2002-2007 the Ithildin Project. 6 6 # See the COPYING file for more information on licensing and use. 7 7 # … … 31 31 * here), but should be properly spaced on the left and aligned. */ 32 32 33 /* All files have 4-space logical tab stops. Two tab-stops should be replaced 34 * with a single <tab>, not eight spaces. Text wraps at column 79 in all 35 * files. Long lines should be extended using the \<newline> mechanism. */ 33 /* All files have 4-space logical tab stops. There are no <tab> characters in 34 * files. Two logical tabs is eight spaces, not a <tab>. Text wraps at 35 * column 79 in all files. Long lines should be extended using the \<newline> 36 * mechanism. */ 36 37 37 38 /* Each C file (including headers) should contain the above notice with the … … 41 42 * file.name: brief summary of the purpose of the file 42 43 * 43 * Copyright 2002 the Ithildin Project.44 * Copyright 2002-2007 the Ithildin Project. 44 45 * See the COPYING file for more information on licensing and use. 45 46 * … … 59 60 60 61 /* include statements should go as follows: any necessary system-wide files 61 * should be included first, followed by "stand.h", followed by any other 62 * necessary local includes. The 'stand.h' include should be directly below 63 * the system includes (if they are used), and a blank line should be added 64 * before any necessary 'local' includes as demonstrated below: */ 62 * should be included first, followed by "ithildin.h", followed by any 63 * other necessary local includes. The 'ithildin.h' include should be 64 * directly below the system includes (if they are used), and a blank 65 * line should be added before any necessary 'local' includes as 66 * demonstrated below: */ 65 67 66 68 #include <system/header.h> 67 69 #include <ithildin/stand.h> 68 70 71 #include <module-header.h> 72 69 73 /* be sure to include an id in your file so it can be identified later. */ 70 74 IDSTRING(rcsid, "$Id$"); 71 75 72 #include <module-header.h>73 76 74 77 /* function and structure declarations are placed below include (and other pre … … 80 83 * should not, in most cases, be typedef'd. examples follow: */ 81 84 82 /* Comments about the use of 'foo', and it 's general purpose, go here.83 * additionally, types should be separated from variable names by up to two84 * tabstops. Comments about structure's member variables' functions should be85 * aligned whenever possible.*/85 /* Comments about the use of 'foo', and its general purpose, go here. 86 * Comments about structure's member variables' functions should be 87 * aligned whenever possible after the 28th column (or later as need 88 * dictates) */ 86 89 struct foo { 87 int bar;/* brief description of variable */88 struct baz abaz; /* a baz structure */89 longtypename avar; /* another variable.90 int bar; /* brief description of variable */ 91 struct baz abaz; /* a baz structure */ 92 longtypename avar; /* another variable. */ 90 93 91 LIST_ENTRY(foo) lp; /* a list entry. lists should be rolled with the92 macros in queue.h unless there is a pressing reason93 not to do so. */94 LIST_ENTRY(foo) lp; /* a list entry. lists should be rolled with the 95 macros in queue.h unless there is a pressing 96 reason not to do so. */ 94 97 }; 95 98 … … 120 123 121 124 /* If other questions remain, and the style is not evident from existing code, 122 * please see the style(9) manual page on your nearest FreeBSD system * .125 * please see the style(9) manual page on your nearest FreeBSD system */ 123 126 -
trunk/ithildin/include/ithildin/hash.h
r787 r806 62 62 int hash_delete(hashtable_t *, void *); 63 63 void *hash_find(hashtable_t *, void *); 64 #define hash_change_cmpfunc(table, func) ((table)->cmpfunc = func) 64 65 #endif 65 66 /* vi:set ts=8 sts=4 sw=4 tw=76 et: */ -
trunk/ithildin/lib/module.c
r798 r806 324 324 free(msdp->name); 325 325 free(msdp); 326 } 327 328 /* load "post" dependencies here. A "post" dependency is a module which 329 * we should load after initializing the current module. These are 330 * mostly identicaly to soft dependencies (load failures don't hurt us) 331 * and are just done at a different time. */ 332 if ((deplist = (char **)dlsym(m->handle, "mpostdepends")) != NULL) { 333 if (!load_module_deps(m, deplist, flags, false)) 334 log_warn("some soft dependencies for %s failed to load, " 335 "continuing anyway.", m->name); 326 336 } 327 337 -
trunk/ithildin/modules/ircd/addons/acl.c
r804 r806 2 2 * acl.c: ircd ACL addon code 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" … … 17 17 18 18 MODULE_REGISTER("$Rev$"); 19 const char **mdepends = [ 20 "ircd", 21 NULL 22 ] 19 const char *mdepends[] = MDEPENDS; 23 20 24 21 struct acl_module_data acl; … … 312 309 if (ret < 1 || ret > 3) 313 310 return 0; 314 else if (!strncasecmp(s , "connected", 4))311 else if (!strncasecmp(str, "connected", 4)) 315 312 return ACL_STAGE_CONNECTED; 316 else if (!strncasecmp(s , "unregistered", 5))313 else if (!strncasecmp(str, "unregistered", 5)) 317 314 return ACL_STAGE_UNREGISTERED; 318 else if (!strncasecmp(s , "registered", 3))315 else if (!strncasecmp(str, "registered", 3)) 319 316 return ACL_STAGE_REGISTERED; 320 317 … … 361 358 } 362 359 360 /* PORTBREAK: need to support skipping dns/ident checks 363 361 if (ap != NULL) { 364 362 if (ap->flags & ACL_FL_SKIP_DNS) … … 367 365 cp->flags |= IRCD_CONNFL_IDENT; 368 366 } 367 */ 369 368 370 369 return NULL; /* default to accept */ … … 783 782 LIST_ALLOC(acl.list); 784 783 LIST_ALLOC(acl.connected_list); 785 LIST_ALLOC(acl.unregiste d_list);784 LIST_ALLOC(acl.unregistered_list); 786 785 LIST_ALLOC(acl.registered_list); 787 786 … … 790 789 791 790 /* add hooks for stage checks */ 792 add_hook(ircd.events.connection_connected, acl_connected_ hook);793 add_hook(ircd.events.connection_unregistered, acl_unregistered_ hook);794 add_hook(ircd.events.connection_registered, acl_registered_ hook);791 add_hook(ircd.events.connection_connected, acl_connected_stage_hook); 792 add_hook(ircd.events.connection_unregistered, acl_unregistered_stage_hook); 793 add_hook(ircd.events.connection_registered, acl_registered_stage_hook); 795 794 add_hook(me.events.read_conf, acl_conf_hook); 796 795 … … 810 809 remove_xinfo_handler(xinfo_acl_handler); 811 810 812 remove_hook(ircd.events.connection_connected, acl_connected_hook); 813 remove_hook(ircd.events.connection_unregistered, acl_unregistered_hook); 814 remove_hook(ircd.events.connection_registered, acl_registered_hook); 811 remove_hook(ircd.events.connection_connected, acl_connected_stage_hook); 812 remove_hook(ircd.events.connection_unregistered, 813 acl_unregistered_stage_hook); 814 remove_hook(ircd.events.connection_registered, acl_registered_stage_hook); 815 815 remove_hook(me.events.read_conf, acl_conf_hook); 816 816 } -
trunk/ithildin/modules/ircd/addons/acl.h
r801 r806 2 2 * acl.h: functions to allow adding/removing/checking ACLs 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 * -
trunk/ithildin/modules/ircd/addons/antidrone.c
r804 r806 9 9 */ 10 10 11 #include <ithildin/ stand.h>11 #include <ithildin/ithildin.h> 12 12 13 13 #include "ircd.h" … … 16 16 17 17 MODULE_REGISTER("$Rev$"); 18 19 const char **mdepends = [ 20 "ircd", 21 NULL 22 ] 18 const char *mdepends[] = MDEPENDS; 23 19 24 20 static bool anti_bear = false; -
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 -
trunk/ithildin/modules/ircd/addons/hostmask.c
r804 r806 2 2 * hostmask.c: configuration based user-hostmasking 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" … … 16 16 17 17 MODULE_REGISTER("$Rev$"); 18 const char **mdepends = [ 19 "ircd", 20 NULL 21 ] 18 const char *mdepends[] = MDEPENDS; 22 19 23 20 #define CGI_IRC_SPECIAL_MASK "cgi:irc" -
trunk/ithildin/modules/ircd/addons/quarantine.c
r804 r806 2 2 * quarantine.c: channel/nickname quarantining 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" … … 17 17 18 18 MODULE_REGISTER("$Rev$"); 19 const char **mdepends = [ 20 "ircd", 21 NULL 22 ] 19 const char *mdepends[] = MDEPENDS; 23 20 24 21 struct quarantine_module_data quarantine; -
trunk/ithildin/modules/ircd/addons/quarantine.h
r579 r806 2 2 * quarantine.h: functions to allow for adding/removing quarantines. 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 * -
trunk/ithildin/modules/ircd/addons/servicesid.c
r804 r806 2 2 * servicesid.c: An ID number tagging facility used by various services 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" … … 17 17 18 18 MODULE_REGISTER("$Rev$"); 19 const char **mdepends = [ 20 "ircd", 21 NULL 22 ] 19 const char *mdepends[] = MDEPENDS; 23 20 24 21 struct mdext_item *servicesid_mdext; -
trunk/ithildin/modules/ircd/addons/servicesid.h
r577 r806 2 2 * servicesid.h: client servicesid tracker (actually just data-holder) 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 * -
trunk/ithildin/modules/ircd/addons/throttle.c
r804 r806 2 2 * throttle.c: connection throttling. 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 * … … 11 11 */ 12 12 13 #include <ithildin/ stand.h>13 #include <ithildin/ithildin.h> 14 14 15 15 #include "ircd.h" … … 19 19 20 20 MODULE_REGISTER("$Rev$"); 21 const char **mdepends = [ 22 "ircd", 23 "ircd.addon.acl", 24 NULL 25 ] 21 const char *mdepends[] = MDEPENDS; 26 22 27 23 static const char *throttle_acl_type = "throttle"; … … 62 58 static void destroy_throttle(throttle_t *); 63 59 64 HOOK_FUNCTION(throttle_connected_ hook);60 HOOK_FUNCTION(throttle_connected_stage_hook); 65 61 HOOK_FUNCTION(throttle_conf_hook); 66 62 HOOK_FUNCTION(throttle_timer_hook); … … 107 103 #define THROTTLE_ERRMSG \ 108 104 "Your host is trying to (re)connect too fast -- throttled." 109 HOOK_FUNCTION(throttle_connected_ hook) {105 HOOK_FUNCTION(throttle_connected_stage_hook) { 110 106 connection_t *cp = (connection_t *)data; 111 107 throttle_t *tp = find_throttle(isock_raddr(cp->sock)); -
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) { -
trunk/ithildin/modules/ircd/chanmodes/operonly.c
r804 r806 1 1 /* 2 * cmode_operonly.c: Operator-only access limiter for channels.2 * operonly.c: Operator-only access limiter for channels. 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 * … … 8 8 */ 9 9 10 #include <ithildin/ stand.h>10 #include <ithildin/ithildin.h> 11 11 12 12 #include "ircd.h" 13 #include "addons/core.h"14 13 15 14 IDSTRING(rcsid, "$Id$"); 16 15 17 16 MODULE_REGISTER("$Rev$"); 18 19 const char **mdepends = [ 20 "ircd", 21 NULL 22 ] 17 const char *mdepends[] = MDEPENDS; 23 18 24 19 static unsigned char chanmode_operonly; … … 26 21 HOOK_FUNCTION(can_join_cmode_O); 27 22 28 MODULE_LOADER( cmode_operonly) {23 MODULE_LOADER(operonly) { 29 24 30 25 if (!get_module_savedata(savelist, "chanmode_operonly", 31 26 &chanmode_operonly)) 32 27 chanmode_request('O', &chanmode_operonly, CHANMODE_FL_D, 33 "chanmode_flag", "chanmode_flag_query", 0, NULL); 28 chanmode_flag, chanmode_flag_query, 0, NULL); 29 else 30 chanmode_update_funcs(chanmode_operonly, chanmode_flag, 31 chanmode_flag_query); 34 32 35 33 add_hook(ircd.events.can_join_channel, can_join_cmode_O); … … 38 36 } 39 37 40 MODULE_UNLOADER( cmode_operonly) {38 MODULE_UNLOADER(operonly) { 41 39 42 40 if (reload) -
trunk/ithildin/modules/ircd/chanmodes/private.c
r804 r806 1 1 /* 2 * cmode_private.c: Flag mode for 'private' channels.2 * private.c: Flag mode for 'private' channels. 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 * … … 10 10 */ 11 11 12 #include <ithildin/ stand.h>12 #include <ithildin/ithildin.h> 13 13 14 14 #include "ircd.h" 15 #include "addons/core.h"16 15 17 16 IDSTRING(rcsid, "$Id$"); 18 17 19 18 MODULE_REGISTER("$Rev$"); 20 21 const char **mdepends = [ 22 "ircd", 23 NULL 24 ] 19 const char *mdepends[] = MDEPENDS; 25 20 26 21 static unsigned char chanmode_private; 27 22 static HOOK_FUNCTION(can_show_chan_private); 28 23 29 MODULE_LOADER( cmode_private) {24 MODULE_LOADER(private) { 30 25 31 26 if (!get_module_savedata(savelist, "chanmode_private", 32 27 &chanmode_private)) 33 28 chanmode_request('p', &chanmode_private, CHANMODE_FL_D, 34 "chanmode_flag", "chanmode_flag_query", 0, NULL); 29 chanmode_flag, chanmode_flag_query, 0, NULL); 30 else 31 chanmode_update_funcs(chanmode_private, chanmode_flag, 32 chanmode_flag_query); 35 33 36 34 add_hook(ircd.events.can_see_channel, can_show_chan_private); … … 39 37 } 40 38 41 MODULE_UNLOADER( cmode_private) {39 MODULE_UNLOADER(private) { 42 40 43 41 remove_hook(ircd.events.can_see_channel, can_show_chan_private); -
trunk/ithildin/modules/ircd/chanmodes/registered.c
r804 r806 1 1 /* 2 * cmode_reg.c: Flag mode for registered channels.2 * registered.c: Flag mode for registered channels. 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/cmode_reg.h"15 14 16 15 IDSTRING(rcsid, "$Id$"); 17 16 18 17 MODULE_REGISTER("$Rev$"); 18 const char *mdepends[] = MDEPENDS; 19 19 20 const char **mdepends = [ 21 "ircd", 22 NULL 23 ] 20 unsigned char chanmode_registered; 24 21 25 unsigned char reg_cmode;22 CHANMODE_FUNC(chanmode_registered_handler); 26 23 27 CHANMODE_FUNC(chanmode_reg); 24 MODULE_LOADER(registered) { 28 25 29 MODULE_LOADER(cmode_reg) { 30 31 if (!get_module_savedata(savelist, "reg_cmode", ®_cmode)) {32 EXPORT_SYM(chanmode_reg);33 chanmode_request('r', ®_cmode, CHANMODE_FL_D,34 "chanmode_reg", "chanmode_flag_query", 0, NULL);35 }26 if (!get_module_savedata(savelist, "chanmode_registered", 27 &chanmode_registered)) 28 chanmode_request('r', &chanmode_registered, CHANMODE_FL_D, 29 chanmode_registered_handler, chanmode_flag_query, 0, NULL); 30 else 31 chanmode_update_funcs(chanmode_registered, 32 chanmode_registered_handler, chanmode_flag_query); 36 33 37 34 #define ERR_ONLYSERVERSCANCHANGE 468 … … 41 38 } 42 39 43 MODULE_UNLOADER( cmode_reg) {40 MODULE_UNLOADER(registered) { 44 41 45 42 if (reload) 46 add_module_savedata(savelist, " reg_cmode", sizeof(reg_cmode),47 ®_cmode);43 add_module_savedata(savelist, "chanmode_registered", 44 sizeof(chanmode_registered), &chanmode_registered); 48 45 else 49 chanmode_release( reg_cmode);46 chanmode_release(chanmode_registered); 50 47 51 48 DMSG(ERR_ONLYSERVERSCANCHANGE); … … 54 51 /* Handle the 'r' channel mode. Make sure the right folks are the only ones 55 52 * who can set it. */ 56 CHANMODE_FUNC(chanmode_reg ) {53 CHANMODE_FUNC(chanmode_registered_handler) { 57 54 58 55 *argused = 0; -
trunk/ithildin/modules/ircd/chanmodes/registered.h
r613 r806 2 2 * cmode_reg.h: macro for checking registration status on channels 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 * … … 11 11 #define IRCD_ADDONS_CMODE_REG_H 12 12 13 extern unsigned char reg_cmode;13 extern unsigned char chanmode_registered; 14 14 15 #define ISREGCHAN(chan) (chanmode_isset(chan, reg_cmode))15 #define ISREGCHAN(chan) (chanmode_isset(chan, chanmode_registered)) 16 16 17 17 #endif -
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) -
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) -
trunk/ithildin/modules/ircd/class.c
r744 r806 2 2 * class.c: connection class management functions 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 * -
trunk/ithildin/modules/ircd/class.h
r579 r806 2 2 * class.h: connection class structure definitions 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 * -
trunk/ithildin/modules/ircd/command.c
r803 r806 2 2 * command.c: command structure management/parsing 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 * -
trunk/ithildin/modules/ircd/command.h
r787 r806 2 2 * command.h: command structure declarations 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 * -
trunk/ithildin/modules/ircd/commands/acl.c
r804 r806 2 2 * acl.c: the ACL command 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 */ … … 72 72 act = ACMD_ADD; 73 73 type = acl_kline_type; 74 stage = ACL_STAGE_REGISTER ;74 stage = ACL_STAGE_REGISTERED; 75 75 acc = ACL_DENY; 76 76 strlcpy(mask, argv[oarg++], USERLEN + HOSTLEN + 2); … … 87 87 act = ACMD_DEL; 88 88 type = acl_kline_type; 89 stage = ACL_STAGE_REGISTER ;89 stage = ACL_STAGE_REGISTERED; 90 90 acc = ACL_DENY; 91 91 strlcpy(mask, argv[oarg++], USERLEN + HOSTLEN + 2); … … 100 100 act = ACMD_ADD; 101 101 type = acl_zline_type; 102 stage = ACL_STAGE_CONNECT ;102 stage = ACL_STAGE_CONNECTED; 103 103 acc = ACL_DENY; 104 104 strlcpy(mask, argv[oarg++], USERLEN + HOSTLEN + 2); … … 115 115 act = ACMD_DEL; 116 116 type = acl_zline_type; 117 stage = ACL_STAGE_CONNECT ;117 stage = ACL_STAGE_CONNECTED; 118 118 acc = ACL_DENY; 119 119 strlcpy(mask, argv[oarg++], USERLEN + HOSTLEN + 2); … … 144 144 if (argc > oarg) { 145 145 stage = str_conv_int(argv[oarg], 0); 146 if (stage < ACL_STAGE_CONNECT || stage >147 ACL_STAGE_REGISTER ) {146 if (stage < ACL_STAGE_CONNECTED || stage > 147 ACL_STAGE_REGISTERED) { 148 148 sendto_one(cli, "NOTICE", 149 149 ":Invalid stage %s", argv[oarg]); -
trunk/ithildin/modules/ircd/commands/admin.c
r804 r806 2 2 * admin.c: the ADMIN command 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 */ -
trunk/ithildin/modules/ircd/commands/akill.c
r804 r806 2 2 * akill.c: the AKILL (and some others ;) command. 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 */ -
trunk/ithildin/modules/ircd/commands/away.c
r804 r806 2 2 * away.c: the AWAY command. 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 */ … … 22 22 23 23 int priv_awaylen; 24 struct mdext_item *away_mdext; 24 25 25 26 MODULE_LOADER(away) { -
trunk/ithildin/modules/ircd/commands/away.h
r492 r806 2 2 * away.h: stuff for tracking away messages. 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 * … … 12 12 13 13 /* for away messages. if the away command isn't loaded, there are no away 14 * messages.. we actually put this in the core addon so that things which 15 * want to show away messages can check for them without the away module 16 * being loaded. */ 14 * messages.. */ 17 15 extern struct mdext_item *away_mdext; 18 16 /* safely look for an away message. */ -
trunk/ithildin/modules/ircd/commands/capab.c
r804 r806 2 2 * capab.c: the CAPAB command 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 */ -
trunk/ithildin/modules/ircd/commands/chatops.c
r804 r806 2 2 * chatops.c: the CHATOPS command 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 * -
trunk/ithildin/modules/ircd/commands/connect.c
r804 r806 2 2 * connect.c: the CONNECT command 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 */ -
trunk/ithildin/modules/ircd/commands/die.c
r804 r806 2 2 * die.c: the DIE command. 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 */ -
trunk/ithildin/modules/ircd/commands/dns.c
r804 r806 2 2 * dns.c: the DNS command 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 * This command acts as a 'dig' like command using the dns module to perform -
trunk/ithildin/modules/ircd/commands/error.c
r804 r806 2 2 * error.c: the ERROR command 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 */ -
trunk/ithildin/modules/ircd/commands/flags.c
r804 r806 2 2 * flags.c: the FLAGS command 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 */ -
trunk/ithildin/modules/ircd/commands/globops.c
r804 r806 2 2 * globops.c: the GLOBOPS command 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 */ -
trunk/ithildin/modules/ircd/commands/gnotice.c
r804 r806 2 2 * gnotice.c: the GNOTICE command 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 */ -
trunk/ithildin/modules/ircd/commands/helper.c
r804 r806 2 2 * helper.c: the HELPER command 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 */ … … 9 9 10 10 #include "ircd.h" 11 #include " addons/umode_helper.h"11 #include "usermodes/helper.h" 12 12 #include "commands/mode.h" 13 13 -
trunk/ithildin/modules/ircd/commands/helpops.c
r804 r806 9 9 10 10 #include "ircd.h" 11 #include " addons/umode_helper.h"11 #include "usermodes/helper.h" 12 12 13 13 IDSTRING(rcsid, "$Id$"); -
trunk/ithildin/modules/ircd/commands/info.c
r804 r806 2 2 * info.c: the INFO command 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 */ -
trunk/ithildin/modules/ircd/commands/invite.c
r804 r806 2 2 * invite.c: the INVITE command 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 #include "ircd.h" 11 #include "addons/core.h"12 11 13 12 IDSTRING(rcsid, "$Id$"); … … 38 37 chanmode_flag_query, sizeof(struct channel_invite_list), NULL); 39 38 } else 40 chanmode_ change_funcs(chanmode_invite, chanmode_i,39 chanmode_update_funcs(chanmode_invite, chanmode_i, 41 40 chanmode_flag_query); 42 41 -
trunk/ithildin/modules/ircd/commands/ison.c
r804 r806 2 2 * ison.c: the ISON command 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 */ -
trunk/ithildin/modules/ircd/commands/kick.c
r804 r806 2 2 * kick.c: the KICK command 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 #include "ircd.h" 11 #include "addons/core.h"12 11 13 12 IDSTRING(rcsid, "$Id$"); -
trunk/ithildin/modules/ircd/commands/kill.c
r804 r806 2 2 * kill.c: the KILL command 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 */ -
trunk/ithildin/modules/ircd/commands/links.c
r804 r806 2 2 * links.c: the LINKS command. 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 */ -
trunk/ithildin/modules/ircd/commands/list.c
r804 r806 14 14 15 15 #include "ircd.h" 16 #include "addons/core.h"17 16 #include "commands/topic.h" 18 17 … … 61 60 ctp = TOPIC(chan); 62 61 /* this is pretty stupid */ 63 if (BPRIV(cli, core.privs.see_hidden_chan)) {62 if (BPRIV(cli, ircd.privileges.priv_shc)) { 64 63 mgunk = chanmode_getmodes(chan); 65 64 if (*mgunk[1] != '\0') -
trunk/ithildin/modules/ircd/commands/locops.c
r804 r806 2 2 * locops.c: the LOCOPS command 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 */ -
trunk/ithildin/modules/ircd/commands/lusers.c
r804 r806 2 2 * lusers.c: the LUSERS command 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 */ -
trunk/ithildin/modules/ircd/commands/mode.c
r804 r806 2 2 * mode.c: the MODE command 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 */ -
trunk/ithildin/modules/ircd/commands/mode.h
r579 r806 2 2 * topic.h: a container for the 'topic' structure. 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 * -
trunk/ithildin/modules/ircd/commands/module.c
r804 r806 2 2 * module.c: the MODULE command 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 #include "ircd.h" 11 #include "addons/core.h"12 11 13 12 IDSTRING(rcsid, "$Id$"); -
trunk/ithildin/modules/ircd/commands/motd.c
r804 r806 2 2 * motd.c: the MOTD command 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 * -
trunk/ithildin/modules/ircd/commands/names.c
r804 r806 2 2 * names.c: the NAMES command 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 */ -
trunk/ithildin/modules/ircd/commands/nick.c
r804 r806 2 2 * nick.c: the NICK command 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 #include "ircd.h" 11 #include "addons/core.h"12 11 #include "commands/mode.h" 13 12 -
trunk/ithildin/modules/ircd/commands/notice.c
r804 r806 2 2 * notice.c: the NOTICE (or PRIVMSG) command 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 */ -
trunk/ithildin/modules/ircd/commands/oper.c
r804 r806 2 2 * oper.c: the OPER command 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 */ -
trunk/ithildin/modules/ircd/commands/part.c
r804 r806 2 2 * part.c: the PART command 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 */ -
trunk/ithildin/modules/ircd/commands/pass.c
r804 r806 2 2 * pass.c: the PASS command 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 */ -
trunk/ithildin/modules/ircd/commands/ping.c
r804 r806 2 2 * ping.c: the PING command 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 */ -
trunk/ithildin/modules/ircd/commands/pong.c
r804 r806 2 2 * pong.c: the PONG command 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 */ -
trunk/ithildin/modules/ircd/commands/quit.c
r804 r806 2 2 * quit.c: the QUIT command 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 */ -
trunk/ithildin/modules/ircd/commands/rehash.c
r804 r806 2 2 * rehash.c: the REHASH command 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 */ -
trunk/ithildin/modules/ircd/commands/samode.c
r804 r806 2 2 * samode.c: the SAMODE command 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 #include "ircd.h" 11 #include " addons/umode_svcadmin.h"11 #include "usermodes/servicesadmin.h" 12 12 #include "commands/mode.h" 13 13 -
trunk/ithildin/modules/ircd/commands/server.c
r804 r806 2 2 * server.c: the SERVER command 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 */ -
trunk/ithildin/modules/ircd/commands/services.c
r804 r806 2 2 * services.c: the SERVICES (and a whole bunch more) commands 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 * -
trunk/ithildin/modules/ircd/commands/silence.c
r804 r806 2 2 * silence.c: the SILENCE command 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 */ -
trunk/ithildin/modules/ircd/commands/sjoin.c
r804 r806 2 2 * sjoin.c: the SJOIN command 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 */ -
trunk/ithildin/modules/ircd/commands/sqline.c
r804 r806 2 2 * sqline.c: the SQLINE/UNSQLINE command. 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 */ -
trunk/ithildin/modules/ircd/commands/squit.c
r804 r806 2 2 * squit.c: the SQUIT command 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 */ -
trunk/ithildin/modules/ircd/commands/stats.c
r804 r806 2 2 * stats.c: the STATS command (wrapper for XINFO) 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 */ -
trunk/ithildin/modules/ircd/commands/svinfo.c
r804 r806 2 2 * svinfo.c: the SVINFO command 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 */ -
trunk/ithildin/modules/ircd/commands/svskill.c
r804 r806 2 2 * svskill.c: the SVSKILL command 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 * -
trunk/ithildin/modules/ircd/commands/svsmode.c
r804 r806 2 2 * svsmode.c: the SVSMODE command 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 */ -
trunk/ithildin/modules/ircd/commands/svsnick.c
r804 r806 2 2 * svsnick.c: the SVSNICK command 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 */ -
trunk/ithildin/modules/ircd/commands/time.c
r804 r806 2 2 * time.c: the TIME command. 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 */ -
trunk/ithildin/modules/ircd/commands/topic.c
r804 r806 2 2 * topic.c: the TOPIC command 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 #include "ircd.h" 11 #include "addons/core.h"12 11 #include "commands/topic.h" 13 12 … … 18 17 19 18 unsigned char topic_chanmode; 19 struct mdext_item *topic_mdext; 20 20 HOOK_FUNCTION(topic_server_establish_hook); 21 21 HOOK_FUNCTION(topic_channel_add_hook); … … 26 26 if (!get_module_savedata(savelist, "topic_chanmode", &topic_chanmode)) 27 27 chanmode_request('t', &topic_chanmode, CHANMODE_FL_D, 28 "chanmode_flag", "chanmode_flag_query", 0, NULL); 28 chanmode_flag, chanmode_flag_query, 0, NULL); 29 else 30 chanmode_update_funcs(topic_chanmode, chanmode_flag, 31 chanmode_flag_query); 32 29 33 if (!get_module_savedata(savelist, "topic_mdext", &topic_mdext)) 30 34 topic_mdext = create_mdext_item(ircd.mdext.channel, -
trunk/ithildin/modules/ircd/commands/topic.h
r579 r806 2 2 * topic.h: a container for the 'topic' structure. 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 * -
trunk/ithildin/modules/ircd/commands/trace.c
r804 r806 2 2 * trace.c: the TRACE command 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 */ -
trunk/ithildin/modules/ircd/commands/user.c
r804 r806 2 2 * user.c: the USER command 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 */ -
trunk/ithildin/modules/ircd/commands/userhost.c
r804 r806 2 2 * userhost.c: the USERHOST command 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 */ -
trunk/ithildin/modules/ircd/commands/version.c
r804 r806 2 2 * version.c: the VERSION command 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 */ -
trunk/ithildin/modules/ircd/commands/wallops.c
r804 r806 2 2 * wallops.c: the WALLOPS command 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 */ -
trunk/ithildin/modules/ircd/commands/watch.c
r804 r806 2 2 * watch.c: the WATCH command 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 * … … 77 77 watch.table = create_hash_table(hashtable_size(ircd.hashes.client), 78 78 offsetof(watch_t, nick), NICKLEN, 79 HASH_FL_NOCASE|HASH_FL_STRING, "nickcmp"); 80 } 79 HASH_FL_NOCASE|HASH_FL_STRING, 80 (hashcmp_function_t)nickcmp); 81 } else 82 hash_change_cmpfunc(watch.table, (hashcmp_function_t)nickcmp); 81 83 82 84 add_isupport("WATCH", ISUPPORT_FL_PRIV, (char *)&watch.watchlim); -
trunk/ithildin/modules/ircd/commands/who.c
r804 r806 2 2 * who.c: the WHO command 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 #include "ircd.h" 11 #include "addons/core.h"12 11 #include "commands/away.h" 13 12 -
trunk/ithildin/modules/ircd/commands/whois.c
r804 r806 2 2 * whois.c: the WHOIS command 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 */ -
trunk/ithildin/modules/ircd/commands/whois.h
r492 r806 2 2 * whois.h: just a header to hold the 'whois' event declaration 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 * -
trunk/ithildin/modules/ircd/commands/whowas.c
r804 r806 2 2 * whowas.c: the WHOWAS command 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 */ -
trunk/ithildin/modules/ircd/commands/xinfo.c
r804 r806 2 2 * xinfo.c: the XINFO (eXtended INFO) command 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 */ -
trunk/ithildin/modules/ircd/conf.c
r787 r806 2 2 * conf.c: ircd configuration data parser 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 * -
trunk/ithildin/modules/ircd/conf.h
r579 r806 2 2 * conf.h: configuration-specific constructs 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 * -
trunk/ithildin/modules/ircd/connection.c
r801 r806 2 2 * connection.c: connection handling routines 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 * -
trunk/ithildin/modules/ircd/doc/connections.txt
r579 r806 3 3 # connections.txt: description of the ircd's connection handling process 4 4 # 5 # Copyright 2002 the Ithildin Project.5 # Copyright 2002-2007 the Ithildin Project. 6 6 # See the COPYING file for more information on licensing and use. 7 7 # -
trunk/ithildin/modules/ircd/ircstring.c
r744 r806 2 2 * ircstring.c: IRC string handling functions 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 * -
trunk/ithildin/modules/ircd/ircstring.h
r577 r806 2 2 * ircstring.h: IRC string support header 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 * -
trunk/ithildin/modules/ircd/privilege.c
r744 r806 2 2 * privilege.c: various functions used for handling privileges 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 * -
trunk/ithildin/modules/ircd/privilege.h
r579 r806 2 2 * privilege.h: support structures/prototypes for privilege.c 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 * -
trunk/ithildin/modules/ircd/protocol.c
r801 r806 2 2 * protocol.c: rudimentary protocol determination routines 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 * -
trunk/ithildin/modules/ircd/protocol.h
r787 r806 2 2 * protocol.h: protocol structure definitions/etc 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 * -
trunk/ithildin/modules/ircd/protocols/bahamut14.c
r579 r806 2 2 * bahamut14.c: the DALnet-ized server<->server protocol 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 8 #include <ithildin/ stand.h>8 #include <ithildin/ithildin.h> 9 9 10 10 #include "ircd.h" … … 13 13 14 14 MODULE_REGISTER("$Rev$"); 15 /* 16 @DEPENDENCIES@: ircd 17 @DEPENDENCIES@: ircd/addons/core 18 @DEPENDENCIES@: ircd/commands/akill ircd/commands/capab 19 @DEPENDENCIES@: ircd/commands/gnotice ircd/commands/services 20 @DEPENDENCIES@: ircd/commands/sqline ircd/commands/svskill 21 @DEPENDENCIES@: ircd/commands/svsmode ircd/commands/svsnick 22 */ 15 const char *mdepends[] = MDEPENDS; 16 /* we do not link to these modules, but want them to be loaded to support 17 * features of the protocol */ 18 const char *msoftdepends[] = { 19 "ircd.command.akill", "ircd.command.capab", 20 "ircd.command.gnotice", "ircd.command.services", 21 "ircd.command.sqline", "ircd.command.svskill", 22 "ircd.command.svsmode", "ircd.command.svsnick", 23 NULL 24 }; 23 25 24 26 uint64_t protocol_flags = PROTOCOL_SFL_SJOIN | PROTOCOL_SFL_NOQUIT | -
trunk/ithildin/modules/ircd/protocols/dreamforge.c
r787 r806 6 6 */ 7 7 8 #include <ithildin/ stand.h>8 #include <ithildin/ithildin.h> 9 9 10 10 #include "ircd.h" … … 13 13 14 14 MODULE_REGISTER("$Rev$"); 15 /* 16 @DEPENDENCIES@: ircd 17 @DEPENDENCIES@: ircd/addons/core 18 @DEPENDENCIES@: ircd/commands/akill ircd/commands/gnotice 19 @DEPENDENCIES@: ircd/commands/services ircd/commands/sqline 20 @DEPENDENCIES@: ircd/commands/svskill ircd/commands/svsmode 21 @DEPENDENCIES@: ircd/commands/svsnick 22 */ 15 const char *mdepends[] = MDEPENDS; 16 const char *msoftdepends[] = { 17 "ircd.command.akill", 18 "ircd.command.gnotice", "ircd.command.services", 19 "ircd.command.sqline", "ircd.command.svskill", 20 "ircd.command.svsmode", "ircd.command.svsnick", 21 NULL 22 }; 23 23 24 24 uint64_t protocol_flags = PROTOCOL_SFL_SHORTAKILL; -
trunk/ithildin/modules/ircd/protocols/ithildin1.c
r787 r806 6 6 */ 7 7 8 #include <ithildin/ stand.h>8 #include <ithildin/ithildin.h> 9 9 10 10 #include "ircd.h" … … 13 13 14 14 MODULE_REGISTER("$Rev$"); 15 /* 16 @DEPENDENCIES@: ircd 17 @DEPENDENCIES@: ircd/addons/core 18 @DEPENDENCIES@: ircd/commands/gnotice 19 */ 15 const char *mdepends[] = MDEPENDS; 16 const char *msoftdepends[] = { 17 "ircd.command.gnotice", 18 NULL 19 }; 20 20 21 21 uint64_t protocol_flags = PROTOCOL_SFL_SJOIN | PROTOCOL_SFL_NOQUIT | -
trunk/ithildin/modules/ircd/protocols/rfc1459.c
r579 r806 2 2 * rfc1459.c: the standard client 'RFC1459' protocol 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 8 #include <ithildin/ stand.h>8 #include <ithildin/ithildin.h> 9 9 10 10 #include "ircd.h" … … 13 13 14 14 MODULE_REGISTER("$Rev$"); 15 /* 16 @DEPENDENCIES@: ircd 17 @DEPENDENCIES@: ircd/commands/nick ircd/commands/pass ircd/commands/user 18 */ 15 const char *mdepends[] = MDEPENDS; 19 16 20 17 /* parser for packets */ -
trunk/ithildin/modules/ircd/send.c
r803 r806 2 2 * send.c: various functions used for sending messages 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 * -
trunk/ithildin/modules/ircd/send.h
r803 r806 2 2 * send.h: support structures/prototypes for send.c 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 * -
trunk/ithildin/modules/ircd/server.c
r801 r806 2 2 * server.c: server handling functions 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 * -
trunk/ithildin/modules/ircd/server.h
r787 r806 2 2 * server.h: support structures/prototypes for server.e 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 * -
trunk/ithildin/modules/ircd/support.c
r787 r806 2 2 * support.c: handling for feature support in the server 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 * -
trunk/ithildin/modules/ircd/support.h
r787 r806 2 2 * support.h: structures for various secondary feature subsystems 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 * -
trunk/ithildin/modules/ircd/usermodes/admin.c
r804 r806 1 1 /* 2 * umode_admin.c: Flag mode for server admins2 * admin.c: Flag mode for server admins 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/umode_admin.h"14 #include "usermodes/admin.h" 15 15 #include "commands/whois.h" 16 16 … … 18 18 19 19 MODULE_REGISTER("$Rev$"); 20 const char **mdepends = [ 21 "ircd", 22 "ircd.command.whois", 23 NULL 24 ] 20 const char *mdepends[] = MDEPENDS; 25 21 26 22 unsigned char usermode_admin; … … 30 26 HOOK_FUNCTION(umode_admin_whois_hook); 31 27 32 MODULE_LOADER( umode_admin) {28 MODULE_LOADER(admin) { 33 29 uint64_t ui64 = 0; 34 30 35 if (!get_module_savedata(savelist, "usermode_admin", &usermode_admin)) { 36 EXPORT_SYM(admin_usermode_handler); 31 if (!get_module_savedata(savelist, "usermode_admin", &usermode_admin)) 37 32 usermode_request('A', &usermode_admin, USERMODE_FL_GLOBAL, -1, 38 "admin_usermode_handler"); 39 } 33 admin_usermode_handler); 34 else 35 usermode_update_func(usermode_admin, admin_usermode_handler); 36 40 37 if (!get_module_savedata(savelist, "admin_priv", &admin_priv)) 41 38 admin_priv = create_privilege("administrator", PRIVILEGE_FL_BOOL, … … 50 47 } 51 48 52 MODULE_UNLOADER( umode_admin) {49 MODULE_UNLOADER(admin) { 53 50 54 51 if (reload) { -
trunk/ithildin/modules/ircd/usermodes/admin.h
r577 r806 2 2 * umode_admin.h: macro for checking server admin status on nicks 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 * -
trunk/ithildin/modules/ircd/usermodes/helper.c
r804 r806 1 1 /* 2 * umode_helper.c: Flag mode for users who are designated helpers2 * helper.c: Flag mode for users who are designated helpers 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 * … … 9 9 */ 10 10 11 #include <ithildin/ stand.h>11 #include <ithildin/ithildin.h> 12 12 13 13 #include "ircd.h" 14 #include "addons/umode_helper.h" 15 #include "commands/mode.h" 14 #include "usermodes/helper.h" 16 15 #include "commands/whois.h" 17 16 … … 19 18 20 19 MODULE_REGISTER("$Rev$"); 21 const char **mdepends = [ 22 "ircd", 23 "ircd.command.mode", 24 "ircd.command.whois", 25 NULL 26 ] 20 const char *mdepends[] = MDEPENDS; 27 21 28 22 unsigned char usermode_helper; … … 32 26 HOOK_FUNCTION(umode_helper_whois_hook); 33 27 34 MODULE_LOADER( umode_helper) {28 MODULE_LOADER(helper) { 35 29 36 30 if (!get_module_savedata(savelist, "sflag_helper", &sflag_helper)) 37 31 sflag_helper = create_send_flag("HELPER", SEND_LEVEL_OPERATOR, -1); 38 if (!get_module_savedata(savelist, "usermode_helper", &usermode_helper)) { 39 EXPORT_SYM(helper_usermode_handler); 32 if (!get_module_savedata(savelist, "usermode_helper", &usermode_helper)) 40 33 usermode_request('h', &usermode_helper, USERMODE_FL_GLOBAL, 41 sflag_helper, "helper_usermode_handler"); 42 } 34 sflag_helper, helper_usermode_handler); 35 else 36 usermode_update_func(usermode_helper, helper_usermode_handler); 43 37 44 38 add_hook(whois_event, umode_helper_whois_hook); … … 51 45 } 52 46 53 MODULE_UNLOADER( umode_helper) {47 MODULE_UNLOADER(helper) { 54 48 55 49 if (reload) { -
trunk/ithildin/modules/ircd/usermodes/helper.h
r577 r806 2 2 * umode_helper.h: macro for checking helper status 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 * -
trunk/ithildin/modules/ircd/usermodes/registered.c
r804 r806 1 1 /* 2 * umode_reg.c: Flag mode for registered nicknames.2 * registered.c: Flag mode for registered nicknames. 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/umode_reg.h"14 #include "usermodes/registered.h" 15 15 #include "commands/mode.h" 16 16 #include "commands/whois.h" … … 19 19 20 20 MODULE_REGISTER("$Rev$"); 21 const char **mdepends = [ 22 "ircd", 23 "ircd.command.mode", 24 "ircd.command.whois", 25 NULL 26 ] 21 const char *mdepends[] = MDEPENDS; 27 22 28 unsigned char reg_umode;23 unsigned char usermode_registered; 29 24 30 USERMODE_FUNC(usermode_reg );31 HOOK_FUNCTION(u mode_reg_nick_hook);32 HOOK_FUNCTION(u mode_reg_whois_hook);25 USERMODE_FUNC(usermode_registered_handler); 26 HOOK_FUNCTION(usermode_registered_nick_hook); 27 HOOK_FUNCTION(usermode_registered_whois_hook); 33 28 34 29 MODULE_LOADER(umode_reg) { 35 30 36 if (!get_module_savedata(savelist, "reg_umode", ®_umode)) { 37 EXPORT_SYM(usermode_reg); 38 usermode_request('r', ®_umode, USERMODE_FL_GLOBAL, -1, 39 "usermode_reg"); 40 } 31 if (!get_module_savedata(savelist, "usermode_registered", 32 &usermode_registered)) 33 usermode_request('r', &usermode_registered, USERMODE_FL_GLOBAL, -1, 34 usermode_registered_handler); 35 else 36 usermode_update_func(usermode_registered, 37 usermode_registered_handler); 41 38 42 add_hook(ircd.events.client_nick, u mode_reg_nick_hook);43 add_hook(whois_event, u mode_reg_whois_hook);39 add_hook(ircd.events.client_nick, usermode_registered_nick_hook); 40 add_hook(whois_event, usermode_registered_whois_hook); 44 41 45 42 #define RPL_WHOISREGNICK 307 … … 52 49 53 50 if (reload) 54 add_module_savedata(savelist, " reg_umode", sizeof(reg_umode),55 ®_umode);51 add_module_savedata(savelist, "usermode_registered", 52 sizeof(usermode_registered), &usermode_registered); 56 53 else 57 usermode_release( reg_umode);54 usermode_release(usermode_registered); 58 55 59 remove_hook(ircd.events.client_nick, u mode_reg_nick_hook);60 remove_hook(whois_event, u mode_reg_whois_hook);56 remove_hook(ircd.events.client_nick, usermode_registered_nick_hook); 57 remove_hook(whois_event, usermode_registered_whois_hook); 61 58 62 59 DMSG(RPL_WHOISREGNICK); … … 64 61 65 62 /* Don't let users change their registered/non-registered setting. */ 66 USERMODE_FUNC(usermode_reg ) {63 USERMODE_FUNC(usermode_registered_handler) { 67 64 /* clients cannot modify the +r mode themselves. note however that 68 65 * this will *not* cause the mode to fail for remote clients … …
