summaryrefslogtreecommitdiff
path: root/src/modes.cpp
AgeCommit message (Collapse)Author
2025-05-03Store the setter and ts for all modes and try to restore them.Sadie Powell
This is mostly for preserving channel list mode info.
2025-01-14Merge branch '2.0' into 2.1.Sadie Powell
2025-01-14Update the copyright headers for 2025.2.0Sadie Powell
2024-10-04Fix matching extended bans in services.Sadie Powell
Extended bans are stored without their prefix. Therefore, we should not try to strip their prefix before matching. Closes #288. Co-authored-by: k4be <k4be@pirc.pl>
2024-03-12Allow protocol modules to declare that they have no line/mode limit.Sadie Powell
InspIRCd allows us to send infinite length lines and mode changes and will restack before sending to users.
2024-03-11Replace convertTo/stringify with non-throwing alternatives.Sadie Powell
Having these throw is terrible for ergonomics and there are loads of places where the exception was either silently ignored or not handled at all. Having a function which returns an optional and another that returns a default works a lot better imo.
2024-02-27Remove redundant uses of const.Sadie Powell
2024-02-27Simplify several boolean expressions.Sadie Powell
2024-02-22Rework SendModeInternal to be usable with Uplink::Send.Sadie Powell
2024-02-17Update the copyright headers for 2024.Sadie Powell
2024-01-23Mark types that have no inheritors as final.Sadie Powell
2024-01-23Improve the layout of types that inherit from another type.Sadie Powell
2024-01-06Use auto in places where the type is unambiguous.Sadie Powell
2024-01-04Update the copyright headers for 2024.Sadie Powell
2023-12-17Remove some unnecessary spaces that break editor indentation.Sadie Powell
2023-10-11Start migrating to range-based for loops.Sadie Powell
2023-06-03Merge branch '2.0' into 2.1.Sadie Powell
2023-05-28regchannels: remove dependency on no-delete-null-pointer-checksAdam
2023-03-13Fix missing override keywords.Sadie Powell
2022-12-31Merge branch '2.0' into 2.1.Sadie Powell
2022-12-31Update the copyright headers for 2023.Sadie Powell
2022-12-09Use emplace() instead of insert(std::make_pair()).Sadie Powell
2022-01-12Merge branch '2.0' into 2.1.Sadie Powell
2022-01-06Update the copyright headers for 2022.Sadie Powell
2022-01-04Use C++11 default initializers and destructors where possible.Sadie Powell
2022-01-04Use C++11 style class/struct initialisation.Sadie Powell
2021-01-07Update copyright to 2021.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2021 Anope Team/i' {} \;
2020-01-04Update copyright to 2020.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2020 Anope Team/i' {} \;
2019-09-23Parse 1205-style mode lists for CAPAB CHANMODES/USERMODES.Peter Powell
2019-01-01Update copyright to 2019.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2019 Anope Team/i' {} \;
2018-04-25Update copyright to 2018.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
2017-03-08modes.cpp: correct usage of format string passed to SendModeAdam
2017-01-17Cleanup some excess whitespaces and tabs, and fix a few typos along the way.Robby
2017-01-16Update copyright to 2017.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2017 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet.
2016-07-03#1682: store aftype with masks and include cidrs in GetNUHMaskAdam
2016-01-28Update copyright to 2016. This was done with:Robby
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet. Fixed some whitespace and blank lines along the way.
2015-12-29Include gecos in GetNUHMaskAdam
2015-07-08Fix a ton of typos.Peter Powell
2015-01-26Check virtual mode bases betterAdam
2014-05-20Speed up akill xline checksAdam
Cache xline nick, user, host, etc instead of rebuilding it everytime its requested. Store users ip in sockaddr form and not string form to prevent having to rebuild sockaddrs when checking xlines. Also do not try to convert empty config values in Config::Get as this can be rather common if a non string configuration value is not set, and the cost of the ConvertException is great.
2014-05-13Sanitize nuh masks more to prevent the other side from rewriting them, which ↵Adam
screws with our internal tracking of them
2014-04-26Fix ModeManager::RebuildStatusModes, not all modes are in GetChannelModes() ↵Adam
at the time this is called
2014-04-25Add "virtual mode" supportAdam
This allows fully tracking extbans and other modes set by a different underlying mode, such as InspIRCd's namedmodes Add two configuration options to cs_ban to configure which mode is set and whether or not to kick banned users. Add default "mute" fantasy command to botserv.example.conf
2014-01-01Update copyright to 2014. This was done with:Adam
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
2013-12-17Set pending mode changes immediately when an object is removed from the mode ↵Adam
stacker. And fix mlock creator from cs set persist on.
2013-09-03Cap mode stacker max line lengthAdam
2013-08-01Use MessageSource as the source for many IRCDProto funcsAdam
Keep track of what user modes are oper only/server only/etc
2013-07-15Fix ModeManager::GetStatusCharAdam
2013-05-27Initially attach all modules to all events, and detach them as the events ↵Adam
are run if they are not implemented per module
2013-05-26Get rid of the remaining references in the core to specific services. Move ↵Adam
more stuff out of the core to the proper modules.