aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Expand)AuthorAgeFilesLines
* Remove InValidMask as it only has one unnecessary use.Gravatar Sadie Powell2026-02-121-35/+0
* Delete the old hashing interface and modules.Gravatar Sadie Powell2025-04-061-20/+0
* Merge branch 'insp4' into master.Gravatar Sadie Powell2025-03-291-1/+1
|\
| * Add constants for the common time formats.Gravatar Sadie Powell2025-03-231-1/+1
* | Move DefaultIsNick/DefaultIsUser/IsNick/IsUser to UserManager.Gravatar Sadie Powell2025-03-231-47/+0
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2025-03-221-1/+1
|\|
| * Rename ToHuman to ToLongString.•••This name is used by functions in too many places already. Gravatar Sadie Powell2025-03-181-1/+1
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2025-03-101-1/+19
|\|
| * Add an flag to ToHuman to shorten the output.Gravatar Sadie Powell2025-03-031-1/+19
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2025-03-031-0/+71
|\|
| * Add Duration::ToHuman and update messages to use it.Gravatar Sadie Powell2025-03-031-0/+71
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2025-03-021-3/+3
|\|
| * Fix a compiler error in helperfuncs.Gravatar Sadie Powell2025-03-021-1/+1
| * Splat some unfinished code that made it into the previous commit.Gravatar Sadie Powell2025-03-011-2/+2
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2025-03-011-21/+50
|\|
| * Avoid the use of ConvToStr in string concatenation.•••This function calls INSP_FORMAT in most cases nowadays so we may as well just call that manually. Gravatar Sadie Powell2025-03-011-3/+3
| * Update copyright headers.Gravatar InspIRCd Robot2025-02-281-1/+1
| * Improve the consistency of duration strings.•••Unfortunately because of leap years we can't really make duration strings exact. Because of this we have always added 6 hours on to each year to make it correct over time. However, we did not do this in any kind of consistent way which resulted in weird roundtripped duration strings which made this very confusing for users While I'm touching the duration code I've also cleaned it up. Gravatar Sadie Powell2025-02-281-17/+46
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2024-12-011-0/+2
|\|
| * Fix stripping adjacent formatting codes.Gravatar Sadie Powell2024-11-271-0/+2
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2024-09-091-69/+132
|\|
| * Use string_view in InspIRCd::Is{FQDN,Host,SID}.Gravatar Sadie Powell2024-09-071-5/+5
| * Update copyright headers.Gravatar InspIRCd Robot2024-09-071-2/+2
| * Fix a regression in ProcessColors.•••We should wait until v5 to be this aggressive with MOTD parsing so we dont break existing users in a minor release. Gravatar Sadie Powell2024-09-021-10/+2
| * Minor performance improvement to ProcessColors.Gravatar Sadie Powell2024-08-311-1/+1
| * Refactor InspIRCd::StripColor.•••- Only strip characters we actually recognise. - Strip the value for hex color codes. Gravatar Sadie Powell2024-08-301-21/+41
| * Add MOTD escape sequences for { and }.Gravatar Sadie Powell2024-08-301-0/+2
| * Allow using color codes by name in MOTD files.Gravatar Sadie Powell2024-08-291-1/+62
| * Refactor InspIRCd::ProcessColors.Gravatar Sadie Powell2024-08-291-44/+32
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2024-08-291-9/+15
|\|
| * Deprecate the raw overload of GenRandomStr in favour of GenRandom.•••The raw overload was almost always misused where GenRandom would be better. While we're making changes to this code switch the printable mode to use a static array like Anope does. Gravatar Sadie Powell2024-08-271-3/+21
| * Change InspIRCd::ProcessColors to take a string instead of a vector.•••This is more useful for how MOTDs are processed now as we iterate through them anyway and this allows us to avoid a needless second iteration. Gravatar Sadie Powell2024-08-271-1/+6
|/
* Update copyright headers.Gravatar InspIRCd Robot2024-07-141-1/+1
* Fix using getentropy() on musl libc.Gravatar Sadie Powell2024-07-131-0/+4
* Use getentropy() from POSIX 2024 if it is available.Gravatar Sadie Powell2024-07-131-1/+5
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-6/+3
* Update usages of stdalgo::string::equalsci to use insp::equalsci.Gravatar Sadie Powell2023-08-111-1/+2
* Work around MSVC not implementing uniform_int_distribution<char>.Gravatar Sadie Powell2023-07-151-2/+2
* Replace rand/rand_s/random with the C++11 random number generator.Gravatar Sadie Powell2023-07-151-16/+6
* Retain the "real" username properly like we do for hostnames.•••This introduces the concept of a real username. This value comes from either the initial USER message or from an ident lookup. Doing this allows us to use it for bans through vidents and cloaking web client users using their remote username. While changing this I also changed all of the uses of "ident" other than RFC 1413 lookups and some compatibility cases to refer to usernames as user(name) instead of ident. Our use of ident in these places was incorrect as that only refers to the RFC 1413 response and is not commonly used in the way we used it by any other IRC server implementations. Gravatar Sadie Powell2023-06-291-2/+2
* Rename duration to timeutils and relocate InspIRCd::TimeString.Gravatar Sadie Powell2023-05-101-2/+2
* Move CheckPassword to helperfuncs.Gravatar Sadie Powell2023-05-081-0/+20
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-04-281-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2023-04-281-1/+1
* | Replace VAFORMAT/InspIRCd::Format/... with fmt::sprintf.Gravatar Sadie Powell2023-01-231-23/+0
* | Replace InspIRCd::Format with fmt::format.Gravatar Sadie Powell2023-01-231-7/+0
* | Move duration functions to their own header.Gravatar Sadie Powell2023-01-231-17/+13
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-131-2/+2
|\|
| * Fix core_dns rejecting simple hostnames.Gravatar Sadie Powell2023-01-131-2/+2
* | Qualify auto correctly in all cases.Gravatar Sadie Powell2023-01-101-3/+3