summaryrefslogtreecommitdiff
path: root/include/modules.h
AgeCommit message (Collapse)Author
2009-11-08Made the Module::ServHelp() functions part of the event systemAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2637 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-08Rewrote all of the old C style flag systems into a new Flag class which ↵Adam-
everything inherits from. This breaks reading and writing flags to the old databases (and probably many other things aswell) - Don't use it git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2636 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-08Rewrote BuildStringList to use std::list instead of char**Adam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2632 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-03Added OnPreNickExpire and OnPreChanExpire events, which can keep nicks and ↵Adam-
channels from expiring git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2605 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-02added a way to load multiple encryption modules at the same and to switch ↵DukePyrolator
between encryption methods git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2602 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-30Rewrote all of the defcon code, and moved most of it to os_defcon. This ↵Adam-
fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-30Added I_OnPreUserConnect, I_OnUserModeAdd, and I_OnUserModeAdd eventsAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2596 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-25Fixed passing invalid channel pointer to OnPartChannel if the last user in a ↵Adam-
channel parted, now we use NULL and just give it the channel name git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2586 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-25Added 4 new events for (un)setting modes on channels and usersAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2583 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-18Fix a few things that bugged me when I was working on one of my own modules.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2573 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-17Renamed OnServerConnect(Server*) event to OnNewServer, we have two ↵Adam-
OnServerConnect's which is slightly confusing... git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2566 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-13Complete rewrite of everything associated with modes, this breaks saving and ↵Adam-
reading mlocked modes from the databases until the new databases are implemented git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2560 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-12Changed /ns confirm to not assume the user you are confirming owns the nick ↵Adam-
(have it ask the user for the password now), added nickserv/confirm opertype command value, and changed OnNickRegister event param to be NickAlias* not User* git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2554 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-11Added OnPostDatabaseLoad event, which triggers after the cores databases ↵Adam-
have been loaded AND immediatly after a module is loaded *if* the core has already been loaded git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2552 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-07added a new event OnUserQuit, changed OnPartChannel and OnUserKicked to send ↵DukePyrolator
the part/kick message and fixed OnUserNickChange git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2539 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-06Destroyed Command::help_param* and rewrote the help part of os_news to be ↵Adam-
much better git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2538 5417fbe8-f217-4b02-8779-1006273d7864
2009-09-27Removed old mod_version system for detecting module versions and replaced ↵Adam-
with the Module::GetVersion() function git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2521 5417fbe8-f217-4b02-8779-1006273d7864
2009-09-15Removed command position from Module::AddCommand(), it is no longer used ↵Adam-
because of OnPreCommand/OnPostCommand git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2505 5417fbe8-f217-4b02-8779-1006273d7864
2009-09-07Added the OnBotPreLoad event to fix introducing StatServAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2494 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-22added more eventsDukePyrolator
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2461 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-20Fix build under Windows.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2458 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-25Changed params parameter of Command's Execute() from ↵cyberbotx
std::vector<std::string> to std::vector<ci::string>, seems to have no ill effects but may require some testing to be sure. Also a few minor cleanups here and there. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2392 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-24Changed subcommand parameter of Command's OnHelp() from std::string to ↵cyberbotx
ci::string, allows sub-help (like NS SET PASSWORD) to be called without requiring the subcommand to be sent by the user in all caps. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2391 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-21Added a new event for channels being deletedadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2388 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-21added 9 new eventsDukePyrolator
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2387 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-30No real need for another constantrburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2347 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-29changed encryption modules to use the new module APIDukePyrolator
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2342 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-28Add ability for fantasy to be disabled for some commands and strip the ↵adam-
channel name from them git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2341 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-26Changed module callbacks to use new Timer APIadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2338 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-23Adds check for using commands on non-registered channels before the adam-
commands are called git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2336 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-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-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-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-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-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-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-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