aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'insp3' into master.Gravatar Sadie Powell2022-03-111-8/+17
|\
| * Handle negative times in InspIRCd::Duration.Gravatar Sadie Powell2022-02-141-8/+17
* | Use vector<string> instead of file_cache in ProcessColors.Gravatar Sadie Powell2022-01-181-4/+2
* | Add constexpr to the initialisation of various const static fields.Gravatar Sadie Powell2022-01-181-1/+1
* | Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-1/+1
* | Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-05-111-1/+1
|\|
| * Fix a bunch of weird indentation and spacing issues.Gravatar Sadie Powell2021-04-271-1/+1
* | Move channel logic from InspIRCd to the new ChannelManager class.Gravatar Sadie Powell2021-05-081-36/+0
* | Refer to encryption as TLS instead of SSL in all messages.Gravatar Sadie Powell2021-04-081-1/+1
* | Switch simple iterator loops to use range-based for loops.Gravatar Sadie Powell2021-04-071-16/+11
* | Fix a ton of pedantic compiler warnings.Gravatar Sadie Powell2021-04-041-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-2/+0
|\|
| * Fix a bunch of really obvious unnecessary includes.Gravatar Sadie Powell2021-03-051-2/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+1
* | Rename ChanMax to MaxChannel for consistency with the other limits.Gravatar Sadie Powell2020-11-271-1/+1
* | Rename NickMax to MaxNick for consistency with the other limits.Gravatar Sadie Powell2020-11-271-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-11-011-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-10-301-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-09-271-8/+6
|\|
| * Refactor GenRandomStr for performance and readability.Gravatar Sadie Powell2020-09-231-8/+6
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-05-051-2/+2
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
| * Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-1/+1
| * Update user-facing text and comments of SSL to TLS.Gravatar Matt Schatz2020-04-141-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-141-1/+1
|\ \
| * | Update user-facing text and comments of SSL to TLS.Gravatar Matt Schatz2020-04-141-1/+1
| |/
* | Move FindNickOnly to UserManager.Gravatar Sadie Powell2020-02-091-11/+0
* | Move FindNick to UserManager.Gravatar Sadie Powell2020-02-091-7/+0
* | Move FindUUID to the UserManager class.Gravatar Sadie Powell2020-02-091-9/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-5/+10
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-5/+10
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-011-12/+0
|\|
| * Improve behaviour when running as root.•••- 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. Gravatar Peter Powell2019-12-081-12/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-161-1/+4
|\|
| * DurationString(): Return "0s" for a duration of 0 (#1677).•••Usually a duration of 0 is not allowed or handled separately, but it can also be used as a 'no set time' without separation. Case in point: m_chanhistory calls DurationString() to convert the max time seconds back to a human readable string for the mode serializer. Returning a blank string is bad here. Gravatar Matt Schatz2019-07-041-0/+3
| * Fix years being offset from weeks (#1678).•••Currently a duration of 52w will return a blank string. When I added weeks to the calculations, I failed to update the number of seconds to a year. As 365 days and 52 weeks aren't the same, but the calculation needs to be consistent.Gravatar Matt Schatz2019-07-041-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-03-301-0/+28
|\|
| * Add a function for displaying human-readable durations.•••Add InspIRCd::DurationString() to take a time_t and return a string with the duration in a human-readable format (ex: 1y20w2d3h5m9s). Gravatar Matt Schatz2019-02-181-0/+28
* | UserManager: remove fakederef.Gravatar Sadie Powell2019-02-071-4/+4
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
|/
* Only parse valid durations, don't treat invalid multipliers as seconds (#1538)Gravatar linuxdaemon2018-12-211-39/+38
* Move IsValidDuration into the core.Gravatar Peter Powell2018-11-241-2/+40
* Add missing special character for reversing color.Gravatar Robby2018-11-201-0/+1
* Fix single backslashes in the MOTD erroneously being removed.Gravatar Peter Powell2018-11-181-1/+1
* Use arc4random_buf() instead of random() when available.Gravatar Peter Powell2018-07-201-3/+7
* Add InspIRCd::IsHost for checking the validity of hostnames.Gravatar Peter Powell2018-07-101-0/+59
* Improve support for MOTD escape codes.•••- Implement escapes for italic, monospace, and strikethrough. - Use the escape codes in the example MOTDs to demonstrate their formatting effects. - Remove support for octal escape codes. In modern computing octal is rarely used and is confusing for users who might confuse it for decimal. Gravatar Peter Powell2018-04-221-13/+14
* Make InspIRCd::Format return std::string instead of const char*.•••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. Gravatar Peter Powell2018-01-031-4/+4