summaryrefslogtreecommitdiff
path: root/src/modules.c
AgeCommit message (Collapse)Author
2008-11-15Remove moduleAddData|GetData|DelData and all associated mess. Extensible ↵rburchell
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-15Create and use constructors for NickInfo, NickAlias, ChannelInfo. Inherit ↵rburchell
all three from Extensible. Convert to use that instead of moduleData stuff. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1705 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15Remove Message::mod_name, modules cannot own ircd messages any more (this ↵rburchell
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-15Remove unused moduleAddMessage/moduleDelMessage, move moduleCallBackRun() ↵rburchell
into ModuleManager:: git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1695 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15Remove some overly verbose debug dumping stuff.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1684 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15Cleanup some stuff to a header.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1683 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14Insane commit of doom: s/ \t/grburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1681 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09addModule + delModule compressed into constructor/destructor.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1615 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09Move loadModule() and unloadModule() inside ModuleManager::Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1614 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09Move modules_core_init() to ModuleManager::LoadModuleList().Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1612 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09Add module.cpp and modulemanager.cpp.Robin Burchell w00t@inspircd.org
- 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-09Remove moduleDataDebug().. debuggers are much more efficient at outputting ↵Robin Burchell w00t@inspircd.org
crap than code is. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1610 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09Merge prepForUnload with module destructor.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1609 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09- Remove redundant ano_modclose(), this is done in module destructor anywayRobin Burchell w00t@inspircd.org
- 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-09UseTokens needs to die in a fire, don't let it be turned off.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1605 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09Merge modules_init() with modules_core_init().Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1604 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09Remove ModulesDelayedAutoLoad.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1603 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Fix segfault when a module throws an exception.Naram Qashat cyberbotx@cyberbotx.com
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1601 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Move moduleAddCommand and moduleDelCommand to Module:: members.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1597 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08moduleAddVersion -> Module::SetVersionRobin Burchell w00t@inspircd.org
moduleAddAuthor -> Module::SetAuthor git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1590 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Don't attempt to show module errors, these are now pretty much useless and ↵Robin Burchell w00t@inspircd.org
replaced with ModuleException.. so. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1589 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08moduleInsertLanguage() -> Module::InsertLanguage()Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1585 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Fix various scary stuff to do with API.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1584 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08moduleSetType() -> Module::SetType().Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1583 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Catch ModuleException thrown from module constructors, and halt load if one ↵Robin Burchell w00t@inspircd.org
is recieved. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1582 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Make the logging a bit less annoyingly insane.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1581 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Convert moduleSetType() to not require a module pointer.. actually, this is ↵Robin Burchell w00t@inspircd.org
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-08Last error fixes, more staticisation.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1575 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-08Warning fixes. Staticise more of modules.c, and mark it for review.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1574 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-07Reorganise some more of this, now makes more logical sense, and almost ↵Robin Burchell w00t@inspircd.org
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-07Remove createModule stuff.. instead, pass string to loadModule. This still ↵Robin Burchell w00t@inspircd.org
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-06Add proper constructor, move Module::name to be string.. still doesn't ↵Robin Burchell w00t@inspircd.org
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-06Remove queueing on module load/unload, NOTE: don't try unload os_modunload, ↵Robin Burchell w00t@inspircd.org
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-06Move createModule and destroyModule into constructor and destructor of class ↵Robin Burchell w00t@inspircd.org
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-10-03Merge branch 'anopeng' into anopeng-configRobin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1410 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-03Merge commit 'cbx/anopeng-charfix' into anopengRobin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1408 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-03* Fix calls to ircdproto->SendMessage and use findbotpeavey peavey@inspircd.org
* make moduleInsertLanguage take const char and convert where needed git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1402 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-02Replaced anope_SendGlobops() with direct call to SendGlobops() in IRCDProto ↵Naram Qashat cyberbotx@cyberbotx.com
class. Added SendGlobopsInternal() function to IRCDProto class, now SendGlobops() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1347 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-02Convert various to new name scheme.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-01Remove USE_MODULES, it'd not really work anyway.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1292 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Add MODULE_INIT to all modules, fix a few various crashes.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1273 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Add MODULE_INIT workaround for modules, so they are loadable. Inspired by ↵Robin Burchell w00t@inspircd.org
InspIRCd solution to this. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1272 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Made all protocol modules able to be compiled via mostly constifying strings.Robin Burchell w00t@inspircd.org
Due to the above, also had to constify strings in many other areas. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1202 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Various g++ fixes.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1178 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-16BUILD : 1.7.22 (1444) BUGS : NOTES : Fixed a typo in modules.c introduced in ↵mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b
the last commit git-svn-id: svn://svn.anope.org/anope/trunk@1444 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1158 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-15Fixed the nss_dns.so.1 issuerob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1443 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1157 5417fbe8-f217-4b02-8779-1006273d7864
2008-05-12Fixed moduleNoticeLang and anope_cmd_notice_opsrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1394 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1109 5417fbe8-f217-4b02-8779-1006273d7864
2008-01-26BUILD : 1.7.21 (1354) BUGS : 833 NOTES : Ficed various oddities in ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
moduleAddData() git-svn-id: svn://svn.anope.org/anope/trunk@1354 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1069 5417fbe8-f217-4b02-8779-1006273d7864
2008-01-13BUILD : 1.7.21 (1345) BUGS : NOTES : Updated copyright information geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1345 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1060 5417fbe8-f217-4b02-8779-1006273d7864
2007-12-27BUILD : 1.7.19 (1321) BUGS : 810 NOTES : Fixed outdated module error strings ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
in ModuleGetErrStr git-svn-id: svn://svn.anope.org/anope/trunk@1321 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1039 5417fbe8-f217-4b02-8779-1006273d7864