579 Commits

Author SHA1 Message Date
Sadie Powell
ffacccbb6f Add a typedef for the data provider map. 2020-12-04 18:06:42 +00:00
Sadie Powell
e81dcaec7f Recheck users for xlines when their real hostname changes. 2020-10-06 10:31:39 +01:00
Sadie Powell
1cb1430c70 ModResult is a class now. 2020-05-22 17:20:34 +01:00
Sadie Powell
3c9d53eadd Document ModResult and switch the underlying type to char. 2020-05-21 19:24:46 +01:00
InspIRCd Robot
44489ddf7e Update copyright headers. 2020-04-24 10:23:47 +01:00
InspIRCd Robot
4f9abe96a4 Fixes by misspell-fixer 2020-04-21 00:52:12 -06:00
Matt Schatz
ccebfe6e63
Update user-facing text and comments of SSL to TLS. 2020-04-14 06:08:31 -06:00
Sadie Powell
e19674d50a Document Module::Prioritize. 2020-04-01 14:32:02 +01:00
Sadie Powell
9ebda853f5 Fix various documentation and formatting issues. 2020-03-30 17:24:12 +01:00
Sadie Powell
aed712ba8e Make loading modules considerably more robust and user friendly. 2020-02-02 20:32:49 +00:00
InspIRCd Robot
8f62016f16 Update copyright headers. 2020-01-31 12:48:25 +00:00
Sadie Powell
4ce16000d3 Bump the ABI version. 2020-01-31 12:42:54 +00:00
Sadie Powell
b759870d74 Add an event for when a command is blocked before execution. 2020-01-22 10:22:02 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Peter Powell
7f36a33713 Bump the InspIRCd ABI version. 2019-12-03 12:25:12 +00:00
Peter Powell
e3deb78340 Add an event which is fired when the server shuts down. 2019-10-17 17:17:39 +01:00
Peter Powell
400de0ab00 Release v3.3.0. 2019-08-23 11:14:07 +01:00
Peter Powell
850b7a3ace Allow modules to prevent a failed connection from being closed. 2019-07-21 13:50:01 +01:00
iwalkalone
2ab383f707 Add OnUserPreQuit event to allow modules to change quit messages (#1629). 2019-06-24 14:46:54 +01:00
Peter Powell
d2ffdfc2ce Make the data provider list case insensitive. 2019-06-18 19:17:18 +01:00
Peter Powell
87bbf574bd Only call events on modules which aren't dying. 2019-06-06 14:14:46 +01:00
Peter Powell
6e6007ef83 Release v3.1.0. 2019-05-17 09:51:03 +01:00
Peter Powell
329cb42190 Bump the API revision for the previous commits. 2019-04-19 13:47:36 +01:00
Peter Powell
15bb93a4ea Remove the OnNamesListItem event out of the core. 2019-04-19 11:51:42 +01:00
Peter Powell
7c8e2990a1 Bump the API revision for the previous commit. 2019-04-15 12:24:13 +01:00
Peter Powell
b00451a85c Fix various typos. 2019-04-04 14:36:45 +01:00
Peter Powell
656ce184b9 Bump the API revision for the previous commit. 2019-04-04 12:27:56 +01:00
Peter Powell
be0c809590 Document OnUserInit properly and add OnUserPostInit. 2019-04-04 12:27:56 +01:00
Peter Powell
785f3a2866 Document OnUserWrite. 2019-02-07 11:56:53 +00:00
Peter Powell
a638de7715 Release v3.0.0 release candidate 2. 2019-02-06 10:02:31 +00:00
Peter Powell
bf046f87c8 Delete the old broken test suite.
This doesn't work properly and is disabled in both debug & release
builds. It will be resurrected with a proper unit testing framework
in the future.
2019-02-05 17:11:54 +00:00
Peter Powell
f4041a13c3 Release v3.0.0 release candidate 1. 2019-01-07 22:41:54 +00:00
Peter Powell
6adca3e099 Fix the OnSendWhoLine event being completely broken with WHOX. 2018-11-15 19:24:47 +00:00
Peter Powell
0e6b18ff91 Fix warnings from Doxygen. 2018-10-21 19:18:08 +01:00
Peter Powell
cae87fa047 Switch all core modules still using COMMAND_INIT to MODULE_INIT. 2018-09-23 14:19:06 +01:00
Peter Powell
7e9ec8e490 Amend OnPostCommand to specify whether the command is loopcalled.
This restores previous behaviour which was lost when the original
line parameter was removed.
2018-09-11 09:03:47 +01:00
Peter Powell
f7a115884f Rename OnChangeLocalUserHost to OnPreChangeHost for consistency. 2018-08-14 00:22:59 +01:00
Peter Powell
10b17a0e9f Remove the OnInfo event.
This is not used by anything and On{Post,Pre}Command hooks can
be used if people really want to add stuff to INFO.
2018-08-14 00:18:13 +01:00
Peter Powell
58a0a7e014 Implement IRCv3 message tag support.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 21:51:11 +01:00
Peter Powell
ba23c2b115 Convert AWAY to use cross-module events and clean up slightly.
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.
2018-08-12 15:01:45 +01:00
Peter Powell
213e4d9680 Remove the original line parameter of On{Pre,Post}Command.
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.
2018-08-10 13:55:32 +01:00
Peter Powell
d9a52277df Remove support for static modules.
This has been frequently broken in the past and as far as I know is
used by literally nobody.

Also, even if all modules are compiled into the core any libraries
linked against are and have always been linked dynamically making
this unusable on platforms without dynamic libraries.
2018-07-31 03:20:18 +01:00
Peter Powell
7bde9de9b3 Replace most usages of "name" with "real" or "real name". 2018-07-30 18:34:57 +01:00
Peter Powell
8cb20e3545 Replace most usages of "GECOS" with "real" or "real name". 2018-07-30 18:30:11 +01:00
Peter Powell
384ef31bc0 Use CommandBase::Params instead of std::vector<std::string>.
This is presently a typedef but will soon be replaced with a class
that encapsulates both tags and parameters.
2018-07-26 20:12:14 +01:00
Peter Powell
ef48486b09 Rename IntModuleList to Module::List. 2018-07-24 10:02:27 +01:00
Peter Powell
35b70631f0 Merge tag 'v2.0.26' into master. 2018-04-22 13:02:19 +01:00
Peter Powell
b86d7db056 Call OnUserMessageBlocked when a PRIVMSG or a NOTICE is blocked.
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.
2018-04-16 17:02:42 +01:00
Peter Powell
aa19c8fc02 Remove swhois messages set in the oper block on deoper.
Closes #1240.
2018-04-09 11:59:09 +01:00
Peter Powell
454c8d3749 Move OnStats from the core to a cross-module event.
Some core code still exists in the XLine system but this will be
replaced when the XLine system is replaced later.
2018-04-08 16:54:27 +01:00