robbeh
24dbf4e00c
Use a virtual destructor for Commands as it has virtual functions
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1969 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 09:17:34 +00:00
rburchell
d7d01bdc5c
Squashed commit: merge next (1.9.1) back to trunk.
...
SVN users, NOTE: THIS WILL NOT BUILD, NOR SHOULD YOU RUN IT YET.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1953 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-09 21:01:05 +00:00
sjaz
73bd4f99ca
Housekeeping contact address updates.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1914 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-03 17:06:39 +00:00
rburchell
fba6ec736d
Update copyrights for 2009.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1909 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-02 18:20:35 +00:00
cyberbotx
81b7aa6571
Massive cleanup of the CMakeLists.txt files to finalize them.
...
Edited configuration scripts for *nix and Windows to use CMake as well as support both in-source and out-of-source builds.
Changed directory structure for *nix to match Windows to remove some conditionals in both CMake and Anope itself.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1841 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:18:40 +00:00
cyberbotx
2d72446860
More CMake work, mostly to handle both *nix and Windows builds.
...
Also some tweaks to generation files (like version.sh) to take both input and output files as arguments, to handle CMake when it's used for an out-of-source build.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1836 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:16:55 +00:00
cyberbotx
7f555f08e7
Modified BotInfo to store a pointer to a command hash table (this is so modules like ss_main can store their own commands but still have them called by the core).
...
Updated the current sample of ss_main to utilize BotInfo instead of Service (which might be removed) as well as accept a HELP command.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1819 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-30 05:50:25 +00:00
rburchell
be278d2bb8
Remove (void) args, these just make things ugly.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1811 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 16:16:53 +00:00
cyberbotx
000b8b3423
Removed mod_current_module, again, so far, no ill-effects...
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1809 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 06:32:45 +00:00
cyberbotx
bdc13b4d6d
Removed mod_current_user and mod_current_op, the latter of which was only an extern.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1807 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 06:00:47 +00:00
cyberbotx
b2f1f14320
Remove a few prototypes to module-related functions that were moved to the Module class.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1805 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 03:16:25 +00:00
cyberbotx
7fdd8d7872
Moved moduleSet*Help() functions to Module::Set*Help().
...
Also corrected a few issues with tabs in the help lines for non-core modules caused from the space->tab conversion a while back.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1804 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 03:05:31 +00:00
cyberbotx
bac9e520ed
Moved moduleNoticeLang() to Module::NoticeLang().
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1803 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 01:04:57 +00:00
cyberbotx
c0c73e4abd
Moved moduleGetLangString() to Module::GetLangString().
...
Also changed modules_unload_all() to not delete a module directly, but instead call ModuleManager::UnloadModule().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1801 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-27 05:35:34 +00:00
cyberbotx
3964ead17e
Moved moduleDeleteLanguage() to Module::DeleteLanguage().
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1800 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-27 03:13:27 +00:00
cyberbotx
c5b9eaeda0
Various fixes for compiling under Windows.
...
Also updated ms_* modules to use std::vector Memo struct from earlier commit.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1797 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-26 01:41:39 +00:00
cyberbotx
0f069f0e8b
Converted modules to use ConfigReader to access new config parser.
...
Added all module directives to new config.
Removed references to old config parser (not sure if I got them all, though).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1756 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-19 00:48:29 +00:00
robbeh
2d768eb325
Modules now delete themselves instead of letting the core do it (just incase one of them has used a custom delete operator)
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1729 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:25:40 +00:00
rburchell
8784fa995e
Remove moduleAddData|GetData|DelData and all associated mess. Extensible base replaces all this in a much cleaner and more transparent fashion.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1706 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 17:56:39 +00:00
rburchell
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.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1696 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 15:46:25 +00:00
rburchell
73f4cccf99
Remove unused moduleAddMessage/moduleDelMessage, move moduleCallBackRun() into ModuleManager::
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1695 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 15:45:27 +00:00
rburchell
3fce6d680d
Remove src/modules/demos, we've sufficient (real world) demos now, and some of these are quite out of date.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1690 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 12:50:32 +00:00
rburchell
094688603f
Cleanup some stuff to a header.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1683 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 00:12:54 +00:00
rburchell
6c55e0a529
Insane commit of doom: s/ \t/g
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1681 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14 20:57:20 +00:00
rburchell
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.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1679 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14 20:28:23 +00:00
Robin Burchell w00t@inspircd.org
649a12c07f
addModule + delModule compressed into constructor/destructor.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1615 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 19:03:56 +00:00
Robin Burchell w00t@inspircd.org
65fd49d362
Move loadModule() and unloadModule() inside ModuleManager::
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1614 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09 16:56:54 +00:00
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
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
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
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
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
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
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
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
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
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
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
6946412b75
Remove unused mod_current_evtbuf.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1561 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 19:20:48 +00:00
Robin Burchell w00t@inspircd.org
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).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1560 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-06 15:48:55 +00:00
Robin Burchell w00t@inspircd.org
d4140b3c26
New MODULE_INIT macro. I'm going to regret this.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1546 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-04 20:28:49 +00:00