1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 08:56:39 +02:00
Commit Graph

1612 Commits

Author SHA1 Message Date
Robin Burchell w00t@inspircd.org df30d0bc2a Move modules_core_init() to ModuleManager::LoadModuleList().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1612 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 03:11:54 +00:00
Robin Burchell w00t@inspircd.org 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.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1611 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 03:03:12 +00:00
Robin Burchell w00t@inspircd.org b7d84f0b68 Remove moduleDataDebug().. debuggers are much more efficient at outputting crap than code is.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1610 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 02:52:38 +00:00
Robin Burchell w00t@inspircd.org 04e2597df2 Merge prepForUnload with module destructor.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1609 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 02:50:14 +00:00
Robin Burchell w00t@inspircd.org d2cb6b78c1 - Remove redundant ano_modclose(), this is done in module destructor anyway
- Remove old AnopeFini stuff, this is now handled by module destructors.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1608 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 01:28:45 +00:00
Robin Burchell w00t@inspircd.org c363ad0efe Update TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1607 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 01:26:05 +00:00
Robin Burchell w00t@inspircd.org 0c5c97ba0e Always UseSVS2MODE, too.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1606 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 01:02:22 +00:00
Robin Burchell w00t@inspircd.org b9d6279692 UseTokens needs to die in a fire, don't let it be turned off.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1605 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 00:48:39 +00:00
Robin Burchell w00t@inspircd.org a9fd3fd828 Merge modules_init() with modules_core_init().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1604 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 00:27:24 +00:00
Robin Burchell w00t@inspircd.org 2a2224023f Remove ModulesDelayedAutoLoad.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1603 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 00:20:33 +00:00
Robin Burchell w00t@inspircd.org a0d3dfa961 Remove duplication..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1602 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 23:56:14 +00:00
Naram Qashat cyberbotx@cyberbotx.com 0b9ae6c1ea Fix segfault when a module throws an exception.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1601 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 17:54:14 +00:00
Naram Qashat cyberbotx@cyberbotx.com 03e3bb1a59 A few compile fixes for protocol modules.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1600 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 17:48:14 +00:00
Robin Burchell w00t@inspircd.org 83c213c6e1 Update TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1599 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 17:30:31 +00:00
Robin Burchell w00t@inspircd.org 6130eecca2 Merge commit 'cbx/anopeng-config' into anopeng
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1598 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 17:22:29 +00:00
Robin Burchell w00t@inspircd.org 1072827648 Move moduleAddCommand and moduleDelCommand to Module:: members.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1597 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 17:00:55 +00:00
Robin Burchell w00t@inspircd.org 21d89df8dd Same cleanups for help_cmd, mod_help_cmd, etc insanity.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1596 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 16:44:06 +00:00
Robin Burchell w00t@inspircd.org 39eb13fbbb Compress do_run_cmd() into mod_run_cmd().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1595 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 16:37:19 +00:00
Robin Burchell w00t@inspircd.org 83539a90a9 Remove completely unused and quite duplicated run_cmd() vs mod_run_cmd().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1594 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 16:31:13 +00:00
Robin Burchell w00t@inspircd.org e701a1e2ad Move more stuff to a module class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1593 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 16:23:26 +00:00
Robin Burchell w00t@inspircd.org 876a2519d5 Note a TODO (permanent channels support) for insp12
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1592 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 02:02:56 +00:00
Robin Burchell w00t@inspircd.org b2e7c7926b Mark duplicate creation fixed, mark mod_current_* crap underway.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1591 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 02:00:17 +00:00
Robin Burchell w00t@inspircd.org 1c3b8e15c2 moduleAddVersion -> Module::SetVersion
moduleAddAuthor -> Module::SetAuthor


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1590 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:54:17 +00:00
Robin Burchell w00t@inspircd.org 7bac547f55 Don't attempt to show module errors, these are now pretty much useless and replaced with ModuleException.. so.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1589 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:38:38 +00:00
Robin Burchell w00t@inspircd.org 3dd5c83486 Correct protocol module version - this is 1.2, not 1.1
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1588 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:31:43 +00:00
Robin Burchell w00t@inspircd.org 26cdf257cc moduleAddEventHook -> Module::AddEventHook.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1587 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:30:43 +00:00
Robin Burchell w00t@inspircd.org 7571ca327e moduleAddEventHook -> Module::AddEventHook, even though this seems to be unused..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1586 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:25:59 +00:00
Robin Burchell w00t@inspircd.org d2e5ef67e3 moduleInsertLanguage() -> Module::InsertLanguage()
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1585 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:13:19 +00:00
Robin Burchell w00t@inspircd.org d5162d6e45 Fix various scary stuff to do with API.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1584 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 01:00:16 +00:00
Robin Burchell w00t@inspircd.org 7ac7c564f5 moduleSetType() -> Module::SetType().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1583 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:48:04 +00:00
Robin Burchell w00t@inspircd.org 7181dc35ce Catch ModuleException thrown from module constructors, and halt load if one is recieved.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1582 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:42:55 +00:00
Robin Burchell w00t@inspircd.org 11a99c885a Make the logging a bit less annoyingly insane.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1581 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:37:16 +00:00
Robin Burchell w00t@inspircd.org 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.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1580 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:34:29 +00:00
Robin Burchell w00t@inspircd.org b8c04482bb This compiles. I have absolutely no idea if it works.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1579 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:21:29 +00:00
Robin Burchell w00t@inspircd.org e459e5833e Call the new base constructor too.. let's hope this all works?
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1578 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:14:35 +00:00
Robin Burchell w00t@inspircd.org 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.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1577 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:12:54 +00:00
Robin Burchell w00t@inspircd.org 68d0a515d0 Correct MODULE_INIT macro to account for new parameter.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1576 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:09:20 +00:00
Robin Burchell w00t@inspircd.org ae6dd5d9c5 Last error fixes, more staticisation.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1575 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:07:24 +00:00
Robin Burchell w00t@inspircd.org 6adc4b6c61 Warning fixes. Staticise more of modules.c, and mark it for review.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1574 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08 00:03:17 +00:00
Robin Burchell w00t@inspircd.org 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.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1573 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-07 23:56:09 +00:00
Robin Burchell w00t@inspircd.org 95774907e1 Remove createModule stuff.. instead, pass string to loadModule. This still isn't compiling, but it's yet another step closer.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1572 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-07 23:52:29 +00:00
Robin Burchell w00t@inspircd.org 67b7ab7af6 Add another (modules related) TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1571 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-07 23:37:05 +00:00
Robin Burchell w00t@inspircd.org fb775c4559 Test commit.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1570 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-07 18:12:06 +00:00
Robin Burchell w00t@inspircd.org 2af64b0957 Lots more stuff to TODO.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1569 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-07 14:02:04 +00:00
Robin Burchell w00t@inspircd.org 9e9ec919ec Add proper constructor, move Module::name to be string.. still doesn't compile, of course, as this still needs a lot more renovation.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1568 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 23:50:03 +00:00
Robin Burchell w00t@inspircd.org 4171f140c2 Add module name to MODULE_INIT. This is not yet actually used, but it will be soon.. >_>
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1567 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 22:48:59 +00:00
Robin Burchell w00t@inspircd.org a95a19faaf Few features to TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1566 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 22:02:50 +00:00
Robin Burchell w00t@inspircd.org 41b3b2636d Mark this partly done.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1565 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 21:46:16 +00:00
Robin Burchell w00t@inspircd.org 2644f79301 Remove queueing on module load/unload, NOTE: don't try unload os_modunload, otherwise things probably won't go too well right now.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1564 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 21:45:10 +00:00
Robin Burchell w00t@inspircd.org 32aa19dc87 Add CS SET INHABIT
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1563 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 20:56:21 +00:00