summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2009-06-11Added missing timers.h and timers.cpp from Adam, removed timeout.h and ↵cyberbotx
timeout.c. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2318 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-10New timer infrastructure, can be used inside modules. Replaces old ↵rburchell
ENFORCE/COLLIDE/inhabit timers, too. Patch by Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2317 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-09Remove events.h, should have been deleted in earlier patch to replace events ↵cyberbotx
system with the new one. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2315 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-06New events stuff, patch totally by Adam (aka Awesome).rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2313 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-03Fix issue with using static_cast instead of reinterpret_cast for Extensible, ↵cyberbotx
allows for more than just char pointers to be used for Extensible. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2311 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-03Fix bug #1080, changing core pseudo-client nicks in the config should ↵cyberbotx
register the change when the bots are brought back online, patch from Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2310 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-08Patch to allow jupe on all bar uplink and self. Thanks Adam. (Bug #1076)sjaz
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2298 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-05Adds check for opertype permissions to mod_run_cmd() in commands.c, and adds ↵cyberbotx
optional parameter to Command class constructor that takes the opertype permissions for the command. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2292 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-16Add Command::SetPermission member to centralise access checking. Remove ↵rburchell
duplicated comments at the same time. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2282 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-16Remove unused modules_unload_all fini paramrburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2279 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-12Copy Extensible::GetExtList() from InspIRCd, patch from DukePyrolator, plus ↵cyberbotx
2 small cosmetic tweaks. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2273 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-07Remove all remaining uses of (My)SQL from the code.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2267 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-06Replace Set*Help() functions with virtual *ServHelp() functions that can be ↵cyberbotx
overriden in a module's Module class. Patch from Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2266 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-04Removed is_host_setter() and is_host_remover() from code and replaced them ↵cyberbotx
with opertype priv "hostserv/set", removed <hostserv:hostsetters> from configuration. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2260 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-04Remove is_services_* methods.. this forces us to actually remove uses of them.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2257 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-03Patch from DukePyrolator to include an OnUserNickChange() event to replace ↵cyberbotx
EVENT_CHANGE_NICK, also patch from me to have the ratbox protocol module send account data on login and logout. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2254 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-03Fix bug #1045, patch from Adam, suspended channels can no longer be ↵cyberbotx
administered, and control over checking forbidden and suspended channels has been moved out of the modules and into the core. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2243 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-03Added service argument to OnPreCommand, added OnPostCommand event, changed ↵cyberbotx
the following modules to use On[Pre|Post]Command instead of hooking into existing commands: hs_request, ns_maxemail, and os_info. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2242 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-02Remove capability for commands to hook existing commands, add an ↵rburchell
OnPreCommand event instead. Tidies up a lot of stuff. Also remove a bunch of dead code. NOTE: This will break some stuff. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2241 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-02Remove rootmodeonid, opermodeonid, adminmodeonid - unused, and utterly ↵rburchell
useless/bad. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2238 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-02Remove NSRestrictGetPass, and replace it with opertype usage.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2237 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-01Replace nick_is_* checking of static userlevels with ↵rburchell
NickCore::IsServicesOper, which just confirms they have *an* opertype. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2231 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-31Send snotice after connecting to the network. Also change OnServerConnect to ↵rburchell
take Server*, not a name. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2227 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-31Fix ss_main's client introduction.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2226 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-25Fix bug #1009, patch inspired by DukePyrolator, add a TS6 SID generator from ↵cyberbotx
DukePyrolator, as well as change SendServer() to take a Server struct and use the result of new_server() in the SendServer() call instead. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2206 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-23Replace manually allocated array for NickCore's access list with an ↵cyberbotx
std::vector, cleans up the code and provides a more sane interface, also fixes bug #1023 in the process. Also add missing help for NS ACCESS. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2201 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-23Replace manual array for ChannelInfo's access list to use an std::vector ↵cyberbotx
instead, cleans up the code by a huge portion and fixes bug #1024 in the process. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2184 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-07Fix slight warning that comes up with gcc 3.4.x but not 4.2.x, this should ↵cyberbotx
be done anyways. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2144 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-28Patch from Adam, reducing duplication in cs_modes. Untested.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2135 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-23Fix slight linking error in Visual Studio, spotted by Brandan.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2128 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19Fix a few warnings. Also move split_usermask into cs_akick, as this is the ↵rburchell
only place it is used. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2119 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19Remove (and neuter) old event system. Not used by anything in core.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2116 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19Move last of events that are in the core distro over to newevents.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2115 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Add OnUserConnect event, mark OnSaveDatabase deprecated pending db redesign.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2113 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Patch from DP, converting all match calls and removing old match method.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2111 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Add nickalias to build. Also stop sstrdup on args that seem to be NULL, it's ↵rburchell
getting ripped out anyway. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2109 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Move EVENT_DB_SAVING to newevent.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2108 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Move assign and unassign to new events, allow for halting too should modules ↵rburchell
desire that. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2107 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-17Fix numerous errors in Win32 building under Visual Studio due to the many ↵cyberbotx
changes to trunk. Trunk now builds under Windows like it should. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2106 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Move EVENT_RELOAD to OnReload.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2103 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Move OnUserKicked to a module event.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2102 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Modevents, ported from insp. Typesafe (unlike the current ones), no double ↵rburchell
hashing overhead (faster), no useless memory allocations (copies of the args) git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2101 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Replaced time_t with long in the ValueItem class, this was preventing ↵cyberbotx
building under FreeBSD. Works under FreeBSD and Linux now. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2098 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Add 'w' and 'y' support to dotime(), also prevent a possible overflow - ↵rburchell
thanks to DP. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2093 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Revert "Patch from DukePyrolator to replace all calls to match_wild() and ↵rburchell
match_wild_nocase() to use Anope::Match() instead. Also changes line-endings on wildcard.cpp to Unix-style, as well as fixes a small compile warning in language.c." This reverts commit fcab9857f55567f10eaecbd6b26ee96f0f549d65. This isn't a simple sed operation, the order of arguments changed, so this would break everything using it. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2081 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Patch from DukePyrolator to replace all calls to match_wild() and ↵cyberbotx
match_wild_nocase() to use Anope::Match() instead. Also changes line-endings on wildcard.cpp to Unix-style, as well as fixes a small compile warning in language.c. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2080 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15Removed notice_user() and replaced all calls with Used::SendMessage.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2078 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15Remove User::na, use User::nc everywhere. Will probably break everything, ↵rburchell
but opens the door to decoupling NC from NA, and means commands can now be run without bothering about changinc nick :) More tweaking for na/nc usage. It compiles, but it's still a work in progress. Again, this compiles, but I *bet* there's no chance in hell it'll work. :) Slightly better. Set User::nc correctly. Fix crash with unregistered nicks in core and ns_access. Fix glist to work when you're not on that particular nick. Fix ns_set to not crash and burn horribly. Fix ns_set and ns_logout to not do bad things. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2076 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15HelpServ has been destroyed, +1000 points. Also fixed the argument order in ↵cyberbotx
the deprecated match_wild() function. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2074 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15Fix CFLAG_ALLOW_UNREGISTERED.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2068 5417fbe8-f217-4b02-8779-1006273d7864