1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:06:37 +02:00
Commit Graph

541 Commits

Author SHA1 Message Date
cyberbotx fb5d7d1815 Properly initialized new objects when needed so they don't contain garbage data.
Also, converted line endings in os_ignore_db from CR+LF to LF.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1784 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-22 02:31:23 +00:00
cyberbotx 16e667a2ce Replaced most uses of smalloc and scalloc with new, replaced most uses of free with delete.
NOTE: This build is unstable due to lack of memory zeroing, this will be addresses in a future commit.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1783 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-22 01:11:19 +00:00
cyberbotx 04c8b28ae7 Removed some signed/unsigned comparison warnings.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1766 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-20 03:35:16 +00:00
cyberbotx b62f8b67f5 Changed integer config values that were marked PARAM_POSINT in the old config to unsigned integers.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1765 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-20 02:06:30 +00:00
cyberbotx d1515210cf Moved include of configreader.h to stop undefined reference to strlcpy (needs testing).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1762 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-20 00:05:38 +00:00
rburchell ba20023fb4 Make this compile.. create NI_FORBIDDEN (temporary) and NI_NOEXPIRE to migrate settings.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1759 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-19 23:22:46 +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
cyberbotx 1a2fdff0c6 Added ConfigReader class from InspIRCd to be used in modules to read config files using the new config parser.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1755 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-18 23:58:33 +00:00
cyberbotx 57b115363c Removed autokilldatabase directive from operserv block as it is no longer in use with the removal of legacy database support.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1752 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-18 17:06:20 +00:00
cyberbotx ffbcff1604 Added support for multiple uplink blocks in the new config.
Moved the type and id directives from the uplink block to the serverinfo block.
Small config fixes.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1746 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-16 19:31:31 +00:00
cyberbotx 72a4c7e6c7 Added module blocks for autoloading non-core modules.
Modified buildStringList to take an std::string and use spacesepstream instead of strtok.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1745 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-16 17:44:35 +00:00
rburchell 1d45a53fa2 Remove UseTS6. This is now on or off at an ircd, not a config level. Move Chary to obsolete for now, it's identical to ratbox anyway in most regards, and it's getting annoying having to redo the same work twice..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1740 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-16 01:26:47 +00:00
rburchell 61f2ce9a41 Enable SVSHOLD for Insp1.1/1.2, remove UseSVSHOLD. Enforcer support may go away, as it is hacky, and no longer used with any of the ircds.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1739 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-16 00:56:47 +00:00
rburchell 01806ba861 Remove UnRestrictSAdmin.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1738 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-16 00:56:17 +00:00
cyberbotx 8131ca2c98 Added ulineservers directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1736 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:49:07 +00:00
cyberbotx 561096f729 Added restrictopernicks directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1734 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:48:44 +00:00
cyberbotx 45e9c393df Added anonymousglobal directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1732 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:48:20 +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
cyberbotx e696a843fc Added globaloncycle directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1726 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:19:50 +00:00
cyberbotx 78b1bc9b0a Added hidestatso directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1725 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:19:38 +00:00
cyberbotx dd4069b504 Added dumpcore and logusers directives to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1724 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 21:19:28 +00:00
cyberbotx dc2176560d Added usestrictprivmsg directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1723 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 20:39:49 +00:00
cyberbotx 2aff20acc0 Added useprivmsg directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1722 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 20:39:37 +00:00
cyberbotx db43487faf Added forceforbidreason directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1721 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 20:39:20 +00:00
rburchell 372c9add36 Add newline
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1718 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:36:15 +00:00
rburchell 5e38abcccc Add forgotten new header.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1717 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:32:36 +00:00
cyberbotx 28a7779174 Added timeoutcheck directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1715 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:15:06 +00:00
cyberbotx 2e9f890978 Added warningtimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1714 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:14:43 +00:00
cyberbotx 4ed52553b0 Added readtimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1713 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:14:23 +00:00
cyberbotx 486097e27b Added expiretimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1712 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:14:05 +00:00
cyberbotx 5fa7475f65 Added updatetimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1711 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:13:44 +00:00
cyberbotx ec8fd88965 Added badpasstimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1710 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 19:13:26 +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 b2b0e1d235 Create and use constructors for NickInfo, NickAlias, ChannelInfo. Inherit 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-15 17:55:55 +00:00
rburchell 5384c97c14 Revert "Clarify some casts to stop warnings on some compilers"
This reverts commit 9ea4d55da11a3c485e08bcfbfb13320086621683.

This seems to cause problems.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1704 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 17:55:22 +00:00
cyberbotx 55e9bf5aea Added strictpasswords directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1703 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 17:52:45 +00:00
cyberbotx 12b60a78ff Added nobackupokay directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1702 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 17:52:36 +00:00
cyberbotx a5eb22efd8 Added userkey[123] directives to options block in new config.
Added ValueContainerLUInt specialization of ValueContainer for the above directives.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1701 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 17:52:23 +00:00
rburchell 2da462ba97 Add Extensible class, which we will use for metadata, derive class User from it as a compile test.
Thanks to Insp for this code.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1699 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 16:21:19 +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 2145e97d70 Clarify some casts to stop warnings on some compilers
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1694 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 15:07:38 +00:00
rburchell 1da6b93633 Nuke eventprintf() and EvtMessage from orbit
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1691 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 12:51:03 +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 83a7ad7480 Fix load error on protocol modules. Rob, you forgot to add a body to your virtual destructor. :)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1685 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-15 00:13:26 +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
rburchell f75ebf8d0d Small miscellaneous fixes, pt 3.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1671 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14 20:03:43 +00:00
rburchell e289e5ade0 Various small warning fixes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1668 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14 20:02:06 +00:00