aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_cloak.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2024-08-031-1/+1
* When recloaking a user don't unset their old host first.•••Also don't punish the user for recloaking. Closes #2101. Gravatar Sadie Powell2024-07-191-2/+12
* Move checks for whether a user is cloakable to {Get,Reset}Cloaks.Gravatar Sadie Powell2023-07-171-4/+6
* Fix the class name of the cloak module.Gravatar Sadie Powell2023-07-021-3/+3
* 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-1/+5
* The standard-replies cap has been adopted by IRCv3 now.Gravatar Sadie Powell2023-06-121-1/+1
* Only regenerate cloaks if a cloak of that type exists.•••This prevents unnecessary recloaking which may result in spam. Gravatar Sadie Powell2023-06-071-0/+10
* Allow secondary cloak methods to be used on link synchronisation.•••If a server has a conditional cloak method (e.g. account) as the primary cloak method it doesn't make sense to use it for link consistency. With this change a secondary cloak method can request that it is used instead of the primary if the primary does not mark itself as link sensitive. Gravatar Sadie Powell2023-06-061-1/+15
* Fix an inverted condition in the cloak module.Gravatar Sadie Powell2023-06-031-1/+1
* Fix missing override keyword.Gravatar Sadie Powell2023-02-261-1/+1
* Allow opting-out of cloaking by connect class.Gravatar Sadie Powell2023-02-231-0/+10
* Improve the log messages when cloaking users.Gravatar Sadie Powell2023-02-201-3/+10
* Avoid setting -x+x when a reset cloak has not changed.Gravatar Sadie Powell2023-02-201-6/+19
* Allow modules to get/reset the cloak lists.Gravatar Sadie Powell2023-02-141-40/+71
* Refactor the caching methods in User and rename to make more sense.Gravatar Sadie Powell2023-01-241-1/+1
* Convert log calls to use fmtlib format stringsGravatar Sadie Powell2023-01-241-3/+3
* Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.Gravatar Sadie Powell2023-01-231-2/+2
* Replace InspIRCd::Format with fmt::format.Gravatar Sadie Powell2023-01-231-4/+4
* Replace ModeAction with bool.•••This enum is functionally the same as bool but with weird semantics. Gravatar Sadie Powell2023-01-221-7/+7
* Fix some issues reported by scan-build.•••All of these are harmless and should never cause an issue in practise. Gravatar Sadie Powell2023-01-151-1/+1
* Fix cloaking users with a non-IP hostname when using hmac-sha256-ip.Gravatar Sadie Powell2023-01-151-0/+4
* Improve the output of /CLOAK when there are no methods available.Gravatar Sadie Powell2023-01-141-2/+13
* Fix a missing override keyword in the cloak module.Gravatar Sadie Powell2023-01-131-1/+1
* Various improvements to the cloak system.•••- Only rewrite cloak => cloaking if the cloak_md5 module is also loaded. - Include the cloak method in the link data. - If 1206 servers are using different cloak methods then ignore the other data when telling operators about the link failure. - Clean up the code in a few places. Gravatar Sadie Powell2023-01-131-3/+24
* Add the core of the new cloak implementation.Gravatar Sadie Powell2023-01-131-0/+335