aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Some more text fixes and improvements (#1618).Gravatar Robby2019-04-281-1/+1
|
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-1/+1
|
* Start using DurationString() in X-line additions andGravatar Matt Schatz2019-02-181-1/+1
| | | | a few other modules where it fits better than just showing seconds.
* Various text improvements: consistency, syntax, help and doc updates/fixes.Gravatar Robby2019-02-181-3/+3
|
* Only parse valid durations, don't treat invalid multipliers as seconds (#1538)Gravatar linuxdaemon2018-12-211-1/+5
|
* Make more modules rehash atomically (#1535)Gravatar linuxdaemon2018-12-191-12/+14
| | | | | Have each module validate the values it loads before setting them, so any errors don't result in partial application of the configs
* Fix not rejecting invalid durations in DCCALLOW.Gravatar Peter Powell2018-12-121-2/+3
|
* Fix a bunch more conflicting/unnamed numerics.Gravatar Peter Powell2018-08-141-8/+9
|
* 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.
* Make more config stuff case insensitive.Gravatar Peter Powell2018-07-241-1/+1
|
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-1/+1
|
* Add names for a bunch of numerics.Gravatar Peter Powell2018-02-021-14/+32
|
* Rework message handling.Gravatar Peter Powell2018-01-061-6/+6
| | | | | | | | | | | | | - Move all message-related types to their own header to make moving them to a cross-module events easier. - Rename OnUserMessage to OnUserPostMessage. - Rename OnText to OnUserMessage. - Replace the dest, target_type, and status parameters with the MessageTarget class. - Replace the text, exempt_list, and msgtype parameters with the MessageDetails struct. - Add echooriginal and originaltext to the MessageDetails struct to allow spam filtering to not be broken by cap echo-message.
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-2/+2
| | | | GCCs warnings for this are much better than Clangs.
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-3/+10
|
* Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-3/+3
| | | | | This removes the need to invalidate the cache after changing a user's hostname.
* Add stdalgo::string::equalsci and use it instead of irc::string for ↵Gravatar Attila Molnar2016-08-221-3/+3
| | | | case-insensitive comparison
* Merge insp20Gravatar Attila Molnar2016-08-171-12/+26
|\
| * Fix dccallow to work with files with spaces in their namesGravatar Adam2016-02-181-12/+26
| |
* | Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-15/+15
| | | | | | | | parameters
* | m_dccallow Call WriteNumeric() in a loop when displaying helpGravatar Attila Molnar2016-02-241-19/+25
| |
* | Merge insp20Gravatar Attila Molnar2016-02-221-0/+10
|\|
| * m_dccallow Add config option to control max entries on a listGravatar Attila Molnar2016-02-121-1/+10
| | | | | | | | Default to 20
* | Remove some IS_SERVER() checksGravatar Attila Molnar2015-12-071-1/+1
| | | | | | | | | | - InspIRCd::FindUUID() and FindNick() no longer return FakeUsers so checking the user returned from those methods is needless - m_dccallow is calling FindNickOnly() so it had the check needlessly
* | Merge insp20Gravatar Attila Molnar2015-04-201-0/+6
|\|
| * m_dccallow Validate tokens before useGravatar Attila Molnar2015-04-161-0/+6
| |
* | Specify which Extensible subclass an ExtensionItem is valid forGravatar Attila Molnar2015-01-181-1/+1
| |
* | Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-1/+1
| | | | | | | | substr() returns a new string while erase() and assign() modify the existing one
* | Add stdalgo::erase() and use it to simplify codeGravatar Attila Molnar2014-11-011-5/+1
| |
* | Merge insp20Gravatar Attila Molnar2014-07-251-2/+2
|\|
| * Correct the syntax messages of a few modules.Gravatar Robby-2014-04-121-2/+2
| |
* | Merge insp20Gravatar Attila Molnar2014-01-211-0/+4
|\|
| * m_dccallow Increase penalty for /DCCALLOW helpGravatar Attila Molnar2014-01-191-0/+4
| |
* | 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-32/+32
| | | | | | | | automatically
* | Change allocation of a few services to make use of auto registrationGravatar attilamolnar2013-09-081-23/+17
| |
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-1/+0
| |
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-7/+1
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | 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
| |
* | Merge insp20Gravatar attilamolnar2013-06-061-1/+1
|\|
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-1/+1
| |
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵Gravatar attilamolnar2013-05-201-7/+2
| | | | | | | | | | | | OnUserMessage and OnUserPreMessage All modules (except m_nonotice) that perform filtering on messages have common logic for handling PRIVMSGs and NOTICEs and most of them run the exact same code in both cases
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-9/+9
| | | | | | | | | | - 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-7/+7
| | | | | | | | | | | | | | | | | | 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.
* | Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-3/+3
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-1/+1
|/
* Register all commands, modes and extensions using AddService()Gravatar attilamolnar2012-12-021-2/+2
| | | | 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-1/+5
|