aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-131-4/+4
| | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* Add an accessor for the last mode change list to ModeParser.Gravatar Peter Powell2018-08-131-1/+1
| | | | GetLastParse will be going away soon.
* Use CommandBase::Params instead of std::vector<std::string>.Gravatar Peter Powell2018-07-261-2/+2
| | | | | This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
* Fixed misc. instances of ERR_NOSUCHNICK instead of channel numericsGravatar B00mX0r2017-12-221-1/+1
| | | | Per #1122
* Extract RFC modes from the core to core_channel and core_user.Gravatar Peter Powell2017-12-101-0/+2
|
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-3/+3
| | | | GCCs warnings for this are much better than Clangs.
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+1
|
* Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-4/+10
|\
| * Improve (synchronize) the notices in m_timedbansGravatar genius30002017-11-061-4/+10
| | | | | | | | | | * Send to remote servers upon setting * Send to halfop if available upon expiry
* | Merge the latest changes from insp20 into master.Gravatar Peter Powell2017-10-121-2/+2
|\|
| * Fix mistakenly hardcoding the halfop prefix char in timedbans.Gravatar Peter Powell2017-08-251-1/+1
| | | | | | | | | | | | 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.
* | Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-121-1/+1
| | | | | | | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* | m_timedbans Remove TimedBan::channelGravatar Attila Molnar2016-08-221-7/+2
| |
* | Switch to irc::equals() from irc::string in modules that use it for ↵Gravatar Attila Molnar2016-08-221-3/+2
| | | | | | | | comparing names of IRC objects
* | m_timedbans Remove one irc::string usageGravatar Attila Molnar2016-08-221-3/+4
| |
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-3/+2
| | | | | | | | parameters
* | Merge insp20Gravatar Attila Molnar2015-04-201-0/+51
|\|
| * m_timedbans Notice user when trying to set a ban that's already setGravatar Attila Molnar2015-04-131-0/+7
| |
| * m_timedbans Extract IsBanSet() to a functionGravatar Attila Molnar2015-04-131-5/+13
| |
| * m_timedbans On channel destruction remove all timed bans belonging to the ↵Gravatar Attila Molnar2015-04-131-1/+23
| | | | | | | | channel from internal bookkeeping
| * m_timedbans Store Channel pointer in struct TimedBanGravatar Attila Molnar2015-04-131-0/+2
| |
* | Replace irc::modestacker usage with the new ModeParser::Process()Gravatar Attila Molnar2014-09-031-11/+6
| |
* | Automatically register and unregister mode watchersGravatar Attila Molnar2014-01-061-10/+0
| |
* | Make various self contained methods static.Gravatar Peter Powell2013-12-151-1/+1
| | | | | | | | | | - InspIRCd::IsValidMask - InspIRCd::TimeString
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-3/+3
| | | | | | | | automatically
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-1/+0
| |
* | Call ModeParser::Process() directly instead of going through the CommandParserGravatar attilamolnar2013-08-041-3/+3
| | | | | | | | Simplify the way how m_conn_umodes assembles the modes it sets
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
| |
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
| |
* | Remove TR_END, remove TRANSLATEx() from commands that do not need itGravatar attilamolnar2013-06-131-1/+0
| |
* | Introduce ModeProcessFlags, can be passed to ModeParser::Process() to ↵Gravatar attilamolnar2013-06-131-1/+1
| | | | | | | | | | | | | | | | 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.)
* | Watch mode names with ModeWatchers instead of mode lettersGravatar attilamolnar2013-06-011-1/+1
| |
* | Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()Gravatar attilamolnar2013-06-011-1/+1
| |
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-3/+3
| | | | | | | | | | - 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.
* | Add method for writing server notices.Gravatar Peter Powell2013-05-141-2/+2
| | | | | | | | | | | | | | | | | | 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.
* | Migrate u_listmode.h into the core, change +b to use itGravatar attilamolnar2013-04-081-10/+7
| |
* | Remove OnAddBan and OnDelBan hooksGravatar attilamolnar2013-04-081-13/+33
| |
* | Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-1/+1
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-2/+1
|/
* m_timedbans Notice halfops and above when a timed ban is placedGravatar attilamolnar2013-03-241-1/+6
| | | | Fixes #415 reported by @killerrabbit
* Modified m_timedbans to behave more like setting mode +b manually.Gravatar ShutterQuick2013-03-151-7/+11
| | | | 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.
* Register all commands, modes and extensions using AddService()Gravatar attilamolnar2012-12-021-1/+1
| | | | AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
* Dynamically determine the size of the eventlist[] passed to Attach()Gravatar attilamolnar2012-12-021-1/+1
| | | | m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
* Attach to events and register services in init()Gravatar attilamolnar2012-12-021-0/+4
|
* m_check, m_namesx, m_timedbans Minor cleanupGravatar attilamolnar2012-11-241-6/+0
|
* Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand()Gravatar attilamolnar2012-11-191-2/+2
|
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-2/+2
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* Fix unsafe iteration in m_timedbansGravatar Daniel De Graaf2010-09-251-17/+23
|
* Fix global notice of timedban add and remove being sourced from all serversGravatar Daniel De Graaf2010-09-181-2/+1
|