aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Amend OnPostCommand to specify whether the command is loopcalled.Gravatar Peter Powell2018-09-111-1/+1
| | | | | This restores previous behaviour which was lost when the original line parameter was removed.
* Rename OnChangeLocalUserHost to OnPreChangeHost for consistency.Gravatar Peter Powell2018-08-141-1/+1
|
* Remove the OnInfo event.Gravatar Peter Powell2018-08-141-1/+0
| | | | | This is not used by anything and On{Post,Pre}Command hooks can be used if people really want to add stuff to INFO.
* Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-131-1/+2
| | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* Convert AWAY to use cross-module events and clean up slightly.Gravatar Peter Powell2018-08-121-1/+0
| | | | | | | OnSetAway has been replaced with four events. OnUserPreAway and OnUserPreBack can be used to deny an away state change and/or change the away message of a local user. OnUserAway and OnUserBack allow modules to be notified that a user's away state has changed.
* Remove the original line parameter of On{Pre,Post}Command.Gravatar Peter Powell2018-08-101-2/+2
| | | | | | | | | In the brave new world of message tags and alternate wire formats this is no longer something that is appropriate to expose. In reality it was only ever used by m_alias which now reconstitutes the command name and parameters into a RFC 1459-style message for whatever it needs to do.
* Replace most usages of "name" with "real" or "real name".Gravatar Peter Powell2018-07-301-1/+1
|
* Replace most usages of "GECOS" with "real" or "real name".Gravatar Peter Powell2018-07-301-1/+1
|
* Use CommandBase::Params instead of std::vector<std::string>.Gravatar Peter Powell2018-07-261-2/+2
| | | | | This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-0/+1
|\
| * Remove swhois messages set in the oper block on deoper.Gravatar Peter Powell2018-04-091-0/+1
| | | | | | | | Closes #1240.
| * ConfigReader: fix compilers optimizing NULL check in ConfigTag::readString()Gravatar Adam2017-10-261-3/+6
| | | | | | | | | | | | See: 66f82ccf926aac39273bfc652c85c08080cc9a46 Fixes inspircd/inspircd-extras#110
* | Call OnUserMessageBlocked when a PRIVMSG or a NOTICE is blocked.Gravatar Peter Powell2018-04-161-0/+1
| | | | | | | | | | | | This is necessary to allow m_ircv3_echomessage to pretend that a message was echoed successfully. This is useful as it doesn't let spammers know that their message was blocked.
* | Move OnStats from the core to a cross-module event.Gravatar Peter Powell2018-04-081-1/+0
| | | | | | | | | | Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
* | Rework message handling.Gravatar Peter Powell2018-01-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | - Move all message-related types to their own header to make moving them to a cross-module events easier. - Rename OnUserMessage to OnUserPostMessage. - Rename OnText to OnUserMessage. - Replace the dest, target_type, and status parameters with the MessageTarget class. - Replace the text, exempt_list, and msgtype parameters with the MessageDetails struct. - Add echooriginal and originaltext to the MessageDetails struct to allow spam filtering to not be broken by cap echo-message.
* | Move OnSync{Channel,Network,User} to ServerEventListener.Gravatar Peter Powell2017-12-031-3/+0
| |
* | Convert the remaining things away from the caller/handler API.Gravatar Peter Powell2017-11-251-1/+1
| |
* | Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-1/+1
| | | | | | | | GCCs warnings for this are much better than Clangs.
* | Add events which are fired when a service is added or deleted.Gravatar Attila Molnar2017-11-161-1/+7
| |
* | Clean up OnCleanup.Gravatar Peter Powell2017-10-181-3/+6
| | | | | | | | | | | | | | | | | | - Switch to using ExtensionItem::ExtensibleType for the type instead of TargetTypeFlags. - Pass the extensible to OnCleanup as an Extensible pointer instead of a void pointer. - Call OnCleanup for memberships as well as channels and users. - Rewrite event documentation to remove outdated references.
* | Ignore <module> tags for modules that are already loaded.Gravatar Peter Powell2017-10-181-3/+7
| | | | | | | | | | This allows us to do user friendly things like loading the alias module in the example alias files.
* | Unregister modes before unhooking extensions when unloading a moduleGravatar Attila Molnar2016-08-291-3/+4
| | | | | | | | Listmodes store their list in an extension that must be present when they are unset to show the modes being unset
* | Deduplicate mode unregistering code in ModuleManager::DoSafeUnload() and ↵Gravatar Attila Molnar2016-08-291-17/+14
| | | | | | | | extract into a method
* | Send WHO reply numerics with User::WriteNumeric(), pass Numeric::Numeric ↵Gravatar Attila Molnar2016-02-261-1/+1
| | | | | | | | objects to the OnSendWhoLine hook
* | Return ModResult from the OnSendWhoLine hookGravatar Attila Molnar2016-02-261-1/+1
| |
* | Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-1/+1
| |
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-1/+1
| | | | | | | | parameters
* | Add minimum channel rank and exception list parameters to the OnUserInvite hookGravatar Attila Molnar2015-12-061-1/+1
| |
* | Merge branch 'master+serviceinit'Gravatar Attila Molnar2015-12-021-24/+21
|\ \
| * | Implement ExtensionItem::RegisterService()Gravatar Attila Molnar2015-11-231-4/+0
| | |
| * | Implement ModeHandler::RegisterService()Gravatar Attila Molnar2015-11-231-7/+0
| | |
| * | Implement Command::RegisterService()Gravatar Attila Molnar2015-11-231-4/+0
| | |
| * | Add ServiceProvider::RegisterService(), call it from ModuleManager::AddService()Gravatar Attila Molnar2015-11-231-1/+1
| | |
| * | Extract code that manipulates the ModuleManager::DataProviders map into methodsGravatar Attila Molnar2015-11-231-9/+21
| | |
* | | Handle module reloading in core_reloadmodule entirelyGravatar Attila Molnar2015-11-261-28/+0
|/ /
* | Fix some oversightsGravatar Attila Molnar2015-05-221-1/+1
| |
* | Allow modules to be called as "foo" instead of "m_foo.so"Gravatar Attila Molnar2015-05-201-1/+11
| |
* | Remove support for non-unloadable (VF_STATIC) modulesGravatar Attila Molnar2015-05-121-6/+0
| | | | | | | | No module we ship uses this flag and new modules should not use it either to make hotfixing possible
* | Move OnWhois* events to core_whois, add Whois::ContextGravatar Attila Molnar2015-04-281-2/+0
| | | | | | | | Remove InspIRCd::SendWhoisLine()
* | Eliminate constant return value of the all events version of ↵Gravatar Attila Molnar2015-02-151-3/+1
| | | | | | | | ModuleManager::SetPriority()
* | Remove I_BEGIN from enum ImplementationGravatar Attila Molnar2015-02-151-3/+3
| |
* | Remove class Event and the OnEvent hookGravatar Attila Molnar2015-02-111-8/+0
| |
* | Allow dynrefs to have an OnCapture() hookGravatar Attila Molnar2015-02-111-2/+10
| |
* | Ensure all dynrefs with the same target resolve to the same object when one ↵Gravatar Attila Molnar2015-02-111-2/+4
| | | | | | | | name points to multiple objects
* | Remove the unused OnGlobalOper hookGravatar Attila Molnar2015-01-101-1/+0
| |
* | Add stdalgo::isin() and use it to simplify codeGravatar Attila Molnar2014-11-011-1/+1
| |
* | Add stdalgo::erase() and use it to simplify codeGravatar Attila Molnar2014-11-011-13/+2
| |
* | Pass Modes::ChangeList references to the OnPreMode hook, make it modifiableGravatar Attila Molnar2014-09-041-1/+1
| | | | | | | | This gets rid of the duplicated mode parsing logic in m_namedmodes
* | Pass the modes to the OnMode hook as a Modes::ChangeList, pass ↵Gravatar Attila Molnar2014-09-031-1/+1
| | | | | | | | ModeProcessFlags too
* | Move the intrusive list containers into the insp namespaceGravatar Attila Molnar2014-08-301-3/+3
| |