summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
AgeCommit message (Collapse)Author
2018-12-21Only parse valid durations, don't treat invalid multipliers as seconds (#1538)linuxdaemon
2018-08-13Implement IRCv3 message tag support.Peter Powell
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13Add an accessor for the last mode change list to ModeParser.Peter Powell
GetLastParse will be going away soon.
2018-07-26Use CommandBase::Params instead of std::vector<std::string>.Peter Powell
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
2017-12-22Fixed misc. instances of ERR_NOSUCHNICK instead of channel numericsB00mX0r
Per #1122
2017-12-10Extract RFC modes from the core to core_channel and core_user.Peter Powell
2017-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2017-11-17Fix a ton of -Wsign-conversion warnings.Peter Powell
2017-11-12Merge tag 'v2.0.25' into master.Peter Powell
2017-11-06Improve (synchronize) the notices in m_timedbansgenius3000
* Send to remote servers upon setting * Send to halfop if available upon expiry
2017-10-12Merge the latest changes from insp20 into master.Peter Powell
2017-08-25Fix mistakenly hardcoding the halfop prefix char in timedbans.Peter Powell
This will almost always be % but if the server admin is using the customprefix module and remaps it to something else messages will not be sent out correctly.
2017-07-12Add CXX11_OVERRIDE to overridden members that lack it.Peter Powell
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
2016-08-22m_timedbans Remove TimedBan::channelAttila Molnar
2016-08-22Switch to irc::equals() from irc::string in modules that use it for ↵Attila Molnar
comparing names of IRC objects
2016-08-22m_timedbans Remove one irc::string usageAttila Molnar
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2015-04-20Merge insp20Attila Molnar
2015-04-13m_timedbans Notice user when trying to set a ban that's already setAttila Molnar
2015-04-13m_timedbans Extract IsBanSet() to a functionAttila Molnar
2015-04-13m_timedbans On channel destruction remove all timed bans belonging to the ↵Attila Molnar
channel from internal bookkeeping
2015-04-13m_timedbans Store Channel pointer in struct TimedBanAttila Molnar
2014-09-03Replace irc::modestacker usage with the new ModeParser::Process()Attila Molnar
2014-01-06Automatically register and unregister mode watchersAttila Molnar
2013-12-15Make various self contained methods static.Peter Powell
- InspIRCd::IsValidMask - InspIRCd::TimeString
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-04Call ModeParser::Process() directly instead of going through the CommandParserattilamolnar
Simplify the way how m_conn_umodes assembles the modes it sets
2013-08-04Automatically attach modules to eventsattilamolnar
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-13Remove TR_END, remove TRANSLATEx() from commands that do not need itattilamolnar
2013-06-13Introduce ModeProcessFlags, can be passed to ModeParser::Process() to ↵attilamolnar
indicate local only mode changes and mode merges Change ProtocolInterface::SendMode() to take source and destination parameters, and call it from the mode parser whenever the mode change is global This deprecates the ambiguous InspIRCd::SendMode() and InspIRCd::SendGlobalMode() interface (the latter sent mode changes originating from local users twice, etc.)
2013-06-01Watch mode names with ModeWatchers instead of mode lettersattilamolnar
2013-06-01Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()attilamolnar
2013-05-15Tidy up keywords on module methods.Peter Powell
- Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
2013-05-14Add method for writing server notices.Peter Powell
This allows us to send a server notice to a user without worrying about whether they are registered or not. If a user receives a server notice and they are not registered then the nickname field will contain an asterisk instead of their nick name.
2013-04-08Migrate u_listmode.h into the core, change +b to use itattilamolnar
2013-04-08Remove OnAddBan and OnDelBan hooksattilamolnar
2013-04-03Convert InspIRCd::Duration() to be staticattilamolnar
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2013-03-24m_timedbans Notice halfops and above when a timed ban is placedattilamolnar
Fixes #415 reported by @killerrabbit
2013-03-15Modified m_timedbans to behave more like setting mode +b manually.ShutterQuick
It now accepts extbans. If one enters something not an extban, or valid banmask, it'll add "!*@*", making it a nick-ban instead of borking.
2012-12-02Register all commands, modes and extensions using AddService()attilamolnar
AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
2012-12-02Dynamically determine the size of the eventlist[] passed to Attach()attilamolnar
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
2012-12-02Attach to events and register services in init()attilamolnar
2012-11-24m_check, m_namesx, m_timedbans Minor cleanupattilamolnar
2012-11-19Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand()attilamolnar
2012-10-12Remove superfluous std::string()sattilamolnar
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2010-09-25Fix unsafe iteration in m_timedbansDaniel De Graaf