aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix stripping adjacent formatting codes.Gravatar Sadie Powell2024-11-271-0/+2
* 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
* 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
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+1
* | Use string_view in IsNick/IsIdent/IsChannel.Gravatar Sadie Powell2022-11-211-3/+3
* | Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-3/+3
* | Fix some warnings noticed by the readability-* clang-tidy checkers.Gravatar Sadie Powell2022-09-031-7/+7
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-06-221-0/+1
|\|
| * Add support for escaping hex colour codes•••This is not widely supported but we should have an escape regardless. Gravatar Sadie Powell2022-06-191-0/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-04-291-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2022-04-281-1/+1
* | 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