1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 18:03:13 +02:00

Commit Graph

  • dde05e96cf Remove Message::mod_name, modules cannot own ircd messages any more (this means everything at protocol level is handled *at protocol level only*, which is good). Also merge callback stuff in with Module class, removing more mod_current_ usage. rburchell 2008-11-15 15:46:25 +00:00
  • 73f4cccf99 Remove unused moduleAddMessage/moduleDelMessage, move moduleCallBackRun() into ModuleManager:: rburchell 2008-11-15 15:45:27 +00:00
  • 2145e97d70 Clarify some casts to stop warnings on some compilers rburchell 2008-11-15 15:07:38 +00:00
  • 1da6b93633 Nuke eventprintf() and EvtMessage from orbit rburchell 2008-11-15 12:51:03 +00:00
  • 3fce6d680d Remove src/modules/demos, we've sufficient (real world) demos now, and some of these are quite out of date. rburchell 2008-11-15 12:50:32 +00:00
  • 4ff3aaccd8 Fix an incorrect cast causing bans to appear to come from 1940. rburchell 2008-11-15 12:28:15 +00:00
  • 60a55fcf16 Fix crash-on-squit with insp12: problem is that an sid was passed in as source for do_server(), which apparantly wasn't much liked.. it also now throws an exception if a nonexistant (to anope) uplink is found, because that would cause weird problems later on. rburchell 2008-11-15 12:18:08 +00:00
  • cc5bc5b363 Config file parser in ServerConfig::LoadConf modified to allow for a single-directive single-line block. This allows for a construct like: module { name = "load_me" } cyberbotx 2008-11-15 01:28:58 +00:00
  • 2d07704bb6 Fix usermode parsing for InspIRCd 1.2 rburchell 2008-11-15 00:21:47 +00:00
  • 83a7ad7480 Fix load error on protocol modules. Rob, you forgot to add a body to your virtual destructor. :) rburchell 2008-11-15 00:13:26 +00:00
  • a0f0cb0767 Remove some overly verbose debug dumping stuff. rburchell 2008-11-15 00:13:11 +00:00
  • 094688603f Cleanup some stuff to a header. rburchell 2008-11-15 00:12:54 +00:00
  • bba7d1aaaf Added --with-debugsym and --with-optimization=0|1|2|3 etc... - defaults are now --with-debugsym and no optimisation (we can change this to 2 later once we are not debugging so often :) ) robbeh 2008-11-14 23:24:36 +00:00
  • 6c55e0a529 Insane commit of doom: s/ \t/g rburchell 2008-11-14 20:57:20 +00:00
  • 069409cd99 - Remove ability to BOT CHANGE a core service client. - Rewrite a lot of the error handling in here to be more readable, and less ircservices-y. - Convert spaces to tabs. rburchell 2008-11-14 20:49:21 +00:00
  • bb47ab8f41 Add Module::SetPermanent() and Module::GetPermanent(), used to mark a module as not unloadable. Used for os_modunload, as unloading it would cause issues. rburchell 2008-11-14 20:28:23 +00:00
  • 10dcb3d8a4 Update TODO, retarget some more complicated stuff at 1.9.1 so as to not destabilise 1.9.0 rburchell 2008-11-14 20:27:54 +00:00
  • 83e67af945 Remove an unused variable. rburchell 2008-11-14 20:05:22 +00:00
  • 3a04b86346 Fix compile error caused by constification of some parametes. rburchell 2008-11-14 20:04:48 +00:00
  • dd6f580502 Fix: make the module type checks more generic (removing a copy of code), and make them actually work properly.. that is, there should no longer be an error about protocol modules on startup. Sorry Sazpimon! rburchell 2008-11-14 20:04:11 +00:00
  • f75ebf8d0d Small miscellaneous fixes, pt 3. rburchell 2008-11-14 20:03:43 +00:00
  • f25ca483fa Various small fixes, part #2. rburchell 2008-11-14 20:03:07 +00:00
  • 295599ab2c Fix potential format vulnerability. rburchell 2008-11-14 20:02:39 +00:00
  • e289e5ade0 Various small warning fixes. rburchell 2008-11-14 20:02:06 +00:00
  • 9dad4ddb93 NewChanges -> Changes and add a few notes on stuff rburchell 2008-11-14 09:46:30 +00:00
  • 2307964f79 Move Changes to docs/OLDCHANGES rburchell 2008-11-14 09:41:01 +00:00
  • 6321db16cf Fixed a few annoying compile warnings robbeh 2008-11-13 21:38:48 +00:00
  • cb29211634 Removed blank line as a test :) robbeh 2008-11-13 20:33:25 +00:00
  • 40839766c2 made the use of run-cc.pl optional, if you dont want to use it, add --with-makebin="" to the ./configure line. robbeh 2008-11-13 20:28:40 +00:00
  • c828c8b92c test commit just ignore it robbeh 2008-11-13 17:47:51 +00:00
  • 359e7ebdef Added dontquoteaddresses directive to mail block in new config. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:55:49 +00:00
  • 2b07bdbf2f Added delay directive to mail block in new config. Renamed restrictmail to restrict in mail block. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:52:14 +00:00
  • 1a89f2475c Added restrictmail directive in mail block in new config. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:47:54 +00:00
  • fc21dbc2ec Added sendfrom directive to mail block in new config. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:44:34 +00:00
  • 93985d17a8 Added sendmailpath directive to mail block in new config. Added ValidateMail function to validate certain mail block config directives only when usemail is enabled. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:41:28 +00:00
  • 8cf37b7f2e Added nicklen directive to networkinfo block in new config. Added ValidateNickLen function for the above directive. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:34:25 +00:00
  • 805efb9900 Started new mail block in new config, added usemail directive to it. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:26:35 +00:00
  • 8681a87405 Added networkname directive to networkinfo block in new config. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:10:22 +00:00
  • 636548571e Added logbot directive to networkinfo block in new config. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:08:00 +00:00
  • b5637777ec Added logchannel directive to networkinfo block in new config. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 23:02:06 +00:00
  • c4f6e8af35 Started new networkinfo block in new config, added helpchannel directive to it. Naram Qashat cyberbotx@cyberbotx.com 2008-11-09 22:58:47 +00:00
  • 649a12c07f addModule + delModule compressed into constructor/destructor. Robin Burchell w00t@inspircd.org 2008-11-09 19:03:56 +00:00
  • 65fd49d362 Move loadModule() and unloadModule() inside ModuleManager:: Robin Burchell w00t@inspircd.org 2008-11-09 16:56:54 +00:00
  • cd71f37e2d Add new TODO item Robin Burchell w00t@inspircd.org 2008-11-09 03:13:55 +00:00
  • df30d0bc2a Move modules_core_init() to ModuleManager::LoadModuleList(). Robin Burchell w00t@inspircd.org 2008-11-09 03:11:54 +00:00
  • d353167118 Add module.cpp and modulemanager.cpp. - module.cpp: contains (new/"good") code relating to modules. Crappy/stuff to be replaced will stay in modules.c - modulemanager.cpp: contains stuff *manipulating* modules. Robin Burchell w00t@inspircd.org 2008-11-09 03:03:12 +00:00
  • b7d84f0b68 Remove moduleDataDebug().. debuggers are much more efficient at outputting crap than code is. Robin Burchell w00t@inspircd.org 2008-11-09 02:52:38 +00:00
  • 04e2597df2 Merge prepForUnload with module destructor. Robin Burchell w00t@inspircd.org 2008-11-09 02:50:14 +00:00
  • d2cb6b78c1 - Remove redundant ano_modclose(), this is done in module destructor anyway - Remove old AnopeFini stuff, this is now handled by module destructors. Robin Burchell w00t@inspircd.org 2008-11-09 01:28:45 +00:00
  • c363ad0efe Update TODO Robin Burchell w00t@inspircd.org 2008-11-09 01:26:05 +00:00
  • 0c5c97ba0e Always UseSVS2MODE, too. Robin Burchell w00t@inspircd.org 2008-11-09 01:02:22 +00:00
  • b9d6279692 UseTokens needs to die in a fire, don't let it be turned off. Robin Burchell w00t@inspircd.org 2008-11-09 00:48:39 +00:00
  • a9fd3fd828 Merge modules_init() with modules_core_init(). Robin Burchell w00t@inspircd.org 2008-11-09 00:27:24 +00:00
  • 2a2224023f Remove ModulesDelayedAutoLoad. Robin Burchell w00t@inspircd.org 2008-11-09 00:20:33 +00:00
  • a0d3dfa961 Remove duplication.. Robin Burchell w00t@inspircd.org 2008-11-08 23:56:14 +00:00
  • 0b9ae6c1ea Fix segfault when a module throws an exception. Naram Qashat cyberbotx@cyberbotx.com 2008-11-08 17:54:14 +00:00
  • 03e3bb1a59 A few compile fixes for protocol modules. Naram Qashat cyberbotx@cyberbotx.com 2008-11-08 17:48:14 +00:00
  • 83c213c6e1 Update TODO Robin Burchell w00t@inspircd.org 2008-11-08 17:30:31 +00:00
  • 6130eecca2 Merge commit 'cbx/anopeng-config' into anopeng Robin Burchell w00t@inspircd.org 2008-11-08 17:22:29 +00:00
  • 1072827648 Move moduleAddCommand and moduleDelCommand to Module:: members. Robin Burchell w00t@inspircd.org 2008-11-08 17:00:55 +00:00
  • 21d89df8dd Same cleanups for help_cmd, mod_help_cmd, etc insanity. Robin Burchell w00t@inspircd.org 2008-11-08 16:44:06 +00:00
  • 39eb13fbbb Compress do_run_cmd() into mod_run_cmd(). Robin Burchell w00t@inspircd.org 2008-11-08 16:37:19 +00:00
  • 83539a90a9 Remove completely unused and quite duplicated run_cmd() vs mod_run_cmd(). Robin Burchell w00t@inspircd.org 2008-11-08 16:31:13 +00:00
  • e701a1e2ad Move more stuff to a module class. Robin Burchell w00t@inspircd.org 2008-11-08 16:23:26 +00:00
  • 876a2519d5 Note a TODO (permanent channels support) for insp12 Robin Burchell w00t@inspircd.org 2008-11-08 02:02:56 +00:00
  • b2e7c7926b Mark duplicate creation fixed, mark mod_current_* crap underway. Robin Burchell w00t@inspircd.org 2008-11-08 02:00:17 +00:00
  • 1c3b8e15c2 moduleAddVersion -> Module::SetVersion moduleAddAuthor -> Module::SetAuthor Robin Burchell w00t@inspircd.org 2008-11-08 01:54:17 +00:00
  • 7bac547f55 Don't attempt to show module errors, these are now pretty much useless and replaced with ModuleException.. so. Robin Burchell w00t@inspircd.org 2008-11-08 01:38:38 +00:00
  • 3dd5c83486 Correct protocol module version - this is 1.2, not 1.1 Robin Burchell w00t@inspircd.org 2008-11-08 01:31:43 +00:00
  • 26cdf257cc moduleAddEventHook -> Module::AddEventHook. Robin Burchell w00t@inspircd.org 2008-11-08 01:30:43 +00:00
  • 7571ca327e moduleAddEventHook -> Module::AddEventHook, even though this seems to be unused.. Robin Burchell w00t@inspircd.org 2008-11-08 01:25:59 +00:00
  • d2e5ef67e3 moduleInsertLanguage() -> Module::InsertLanguage() Robin Burchell w00t@inspircd.org 2008-11-08 01:13:19 +00:00
  • d5162d6e45 Fix various scary stuff to do with API. Robin Burchell w00t@inspircd.org 2008-11-08 01:00:16 +00:00
  • 7ac7c564f5 moduleSetType() -> Module::SetType(). Robin Burchell w00t@inspircd.org 2008-11-08 00:48:04 +00:00
  • 7181dc35ce Catch ModuleException thrown from module constructors, and halt load if one is recieved. Robin Burchell w00t@inspircd.org 2008-11-08 00:42:55 +00:00
  • 11a99c885a Make the logging a bit less annoyingly insane. Robin Burchell w00t@inspircd.org 2008-11-08 00:37:16 +00:00
  • d18d3f094c Convert moduleSetType() to not require a module pointer.. actually, this is probably the wrong way to go about this (we should use a member func), but who cares for now. Robin Burchell w00t@inspircd.org 2008-11-08 00:34:29 +00:00
  • b8c04482bb This compiles. I have absolutely no idea if it works. Robin Burchell w00t@inspircd.org 2008-11-08 00:21:29 +00:00
  • e459e5833e Call the new base constructor too.. let's hope this all works? Robin Burchell w00t@inspircd.org 2008-11-08 00:14:35 +00:00
  • 8d4789efaa Convert all the derived module constructors to take the new parameter (sed must be worshipped). They still call the base constructor the wrong way. Robin Burchell w00t@inspircd.org 2008-11-08 00:12:54 +00:00
  • 68d0a515d0 Correct MODULE_INIT macro to account for new parameter. Robin Burchell w00t@inspircd.org 2008-11-08 00:09:20 +00:00
  • ae6dd5d9c5 Last error fixes, more staticisation. Robin Burchell w00t@inspircd.org 2008-11-08 00:07:24 +00:00
  • 6adc4b6c61 Warning fixes. Staticise more of modules.c, and mark it for review. Robin Burchell w00t@inspircd.org 2008-11-08 00:03:17 +00:00
  • ba73678ade Reorganise some more of this, now makes more logical sense, and almost compiles (just some constification left). NOTE: moduleCopyFile() is now local to modules.c (static), but that should not be an issue for any well-written client code. Robin Burchell w00t@inspircd.org 2008-11-07 23:56:09 +00:00
  • 95774907e1 Remove createModule stuff.. instead, pass string to loadModule. This still isn't compiling, but it's yet another step closer. Robin Burchell w00t@inspircd.org 2008-11-07 23:52:29 +00:00
  • 67b7ab7af6 Add another (modules related) TODO Robin Burchell w00t@inspircd.org 2008-11-07 23:37:05 +00:00
  • fb775c4559 Test commit. Robin Burchell w00t@inspircd.org 2008-11-07 18:12:06 +00:00
  • 2af64b0957 Lots more stuff to TODO. Robin Burchell w00t@inspircd.org 2008-11-07 14:02:04 +00:00
  • 9e9ec919ec Add proper constructor, move Module::name to be string.. still doesn't compile, of course, as this still needs a lot more renovation. Robin Burchell w00t@inspircd.org 2008-11-06 23:50:03 +00:00
  • 4171f140c2 Add module name to MODULE_INIT. This is not yet actually used, but it will be soon.. >_> Robin Burchell w00t@inspircd.org 2008-11-06 22:48:59 +00:00
  • a95a19faaf Few features to TODO Robin Burchell w00t@inspircd.org 2008-11-06 22:02:50 +00:00
  • 41b3b2636d Mark this partly done. Robin Burchell w00t@inspircd.org 2008-11-06 21:46:16 +00:00
  • 2644f79301 Remove queueing on module load/unload, NOTE: don't try unload os_modunload, otherwise things probably won't go too well right now. Robin Burchell w00t@inspircd.org 2008-11-06 21:45:10 +00:00
  • 32aa19dc87 Add CS SET INHABIT Robin Burchell w00t@inspircd.org 2008-11-06 20:56:21 +00:00
  • 664aba5f39 Add more explicit notes on modules subsystem rewrite. Robin Burchell w00t@inspircd.org 2008-11-06 19:24:23 +00:00
  • 6946412b75 Remove unused mod_current_evtbuf. Robin Burchell w00t@inspircd.org 2008-11-06 19:20:48 +00:00
  • b9aeca4708 Move createModule and destroyModule into constructor and destructor of class Module. This won't yet compile, as a lot of stuff throws around newly initialised Module * for no reason, and this needs to change. TODO: - remove mod_current_* stuff - remove module queueing (this will probably require a permanent module flag for os_modunload, but who cares). Robin Burchell w00t@inspircd.org 2008-11-06 15:48:55 +00:00
  • 88f9975f40 Convert src/modules to use the new modules loader. Robin Burchell w00t@inspircd.org 2008-11-05 20:20:28 +00:00
  • 2ce8f4aea2 Convert protocol modules Robin Burchell w00t@inspircd.org 2008-11-05 00:23:58 +00:00
  • 3bc401a130 Convert OperServ. YES, src/core done. Robin Burchell w00t@inspircd.org 2008-11-05 00:17:27 +00:00