summaryrefslogtreecommitdiff
path: root/include/inspircd.h
AgeCommit message (Collapse)Author
2021-03-31Fix various documentation comments.Sadie Powell
2021-03-05Update copyright headers.InspIRCd Robot
2020-04-21Fixes by misspell-fixerInspIRCd Robot
2020-01-11Update copyright headers.InspIRCd Robot
2019-12-09Make BindPorts return size_t instead of int.Peter Powell
2019-12-08Improve behaviour when running as root.Peter Powell
- Only give the annoying message about root if --runasroot is not specified. - If --runasroot is specified then assume the user knows what they are doing. - Move CheckRoot to a static function in inspircd.cpp.
2019-12-08Convert InspIRCd::SetSignals to a static function.Peter Powell
2019-12-08Move forking code into a function and remove DaemonSeed.Peter Powell
2019-10-14Implement serialisation of users.Peter Powell
This allows for various things which will be coming in the future. e.g. Transferring users to another server on upgrade.
2019-07-26Fix various cases of broken indentation.Peter Powell
2019-05-06Fix building against older versions of glibc.Peter Powell
2019-04-28Textual improvements and fixes such as typos, casing, etc. (#1612)Robby
2019-02-18Add a function for displaying human-readable durations.Matt Schatz
Add InspIRCd::DurationString() to take a time_t and return a string with the duration in a human-readable format (ex: 1y20w2d3h5m9s).
2019-01-09Improve X-line text consistency.Matt Schatz
- Change any "-Line", ":Line", or "*line" to "-line" throughout the X-line code, comments, and documentation. - Add periods to the end of some notices. - Correct a typo in the Q-line code comments. - Update the filter module documentation (shun addition). Co-authored-by: Robby <robby@chatbelgie.be>
2018-12-21Only parse valid durations, don't treat invalid multipliers as seconds (#1538)linuxdaemon
2018-11-24Move IsValidDuration into the core.Peter Powell
2018-10-21Fix warnings from Doxygen.Peter Powell
2018-09-23Switch all core modules still using COMMAND_INIT to MODULE_INIT.Peter Powell
2018-08-13Implement IRCv3 message tag support.Peter Powell
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-07-26Replace irc::stringjoiner with a generic stdalgo::string::join.Peter Powell
This can also be used with different types of collection containing values which are not a string.
2018-07-26Use CommandBase::Params instead of std::vector<std::string>.Peter Powell
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
2018-07-18Initial support for listening on UNIX socket endpoints.Peter Powell
2018-07-10Add InspIRCd::IsHost for checking the validity of hostnames.Peter Powell
2018-04-16Add range checking to ConfigTag::getFloat.Peter Powell
2018-04-08Include modules/whois.h directly from files that use it.Peter Powell
2018-04-08Move OnStats from the core to a cross-module event.Peter Powell
Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
2018-01-14Fix some minor Doxygen errors.Peter Powell
2018-01-06Rework message handling.Peter Powell
- 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.
2018-01-03Make InspIRCd::Format return std::string instead of const char*.Peter Powell
Using the latter is problematic as if you don't copy the return value before calling Format again your formatted message will be overwritten by something else. This bug was observed in m_callerid where InspIRCd::Format was being used for formatting two arguments the latter of which was being overwritten with the former. We could have preserved the return type and just copied the string but then callers would have had to deallocate the string once they have finished with it which is an undesirabable burden to put on callers.
2017-12-23Get rid of InspIRCd::QuickExit.Peter Powell
This is just a thin wrapper around exit(). I don't think we really need it. While we are changing this code the setgroup/setuser code should be using EXIT_STATUS_CONFIG too.
2017-11-25Convert the remaining things away from the caller/handler API.Peter Powell
2017-11-25Convert GenRandom to std::function.Peter Powell
2017-11-25Convert IsChannel to std::function.Peter Powell
2017-11-25Convert IsIdent to std::function.Peter Powell
2017-11-25Convert IsNick to std::function.Peter Powell
2017-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2017-11-17Fix a ton of -Wsign-conversion warnings.Peter Powell
2017-09-11Move operquit out of the core and into core_user.Peter Powell
2017-08-26Fix a bunch of Doxygen warnings.Peter Powell
2017-03-20Move the OnCheckExemption hook out of the core.Peter Powell
2016-08-17Merge insp20Attila Molnar
2016-06-17Don't exit on rehash if the pid file cannot be writtenAttila Molnar
2016-02-25Introduce Stats::Context, pass it to the OnStats hook and switch all code to itAttila Molnar
2016-02-25Add Numeric::NumericAttila Molnar
2016-02-25Move implementation of ConvTo*() and related functions into convto.hAttila Molnar
2016-02-25Include stdint.h from inspircd.hAttila Molnar
2015-12-30Add Numeric::BuilderAttila Molnar
2015-12-08Strip all control codes except \001 in InspIRCd::StripColor()Attila Molnar
Fixes issue #1100 reported by @uecasm
2015-05-17Move InspIRCd::SendError() to cmd_dieAttila Molnar
Fix multiple ERROR messages being sent to unregistered users by removing the "Exiting with status..." message
2015-04-28Move OnWhois* events to core_whois, add Whois::ContextAttila Molnar
Remove InspIRCd::SendWhoisLine()