aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-12/+8
|
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-1/+1
|
* m_callerid, m_dccallow Use OnUserPostNick hook instead of OnUserPreNickGravatar attilamolnar2012-07-011-3/+2
|
* m_callerid, m_dccallow Fix crash caused by allowing unregistered users and ↵Gravatar attilamolnar2012-07-011-1/+1
| | | | SIDs to be on callerid/dccallow lists
* m_dccallow Fix unsafe iterationGravatar attilamolnar2012-07-011-5/+9
|
* Module description updatesGravatar Robby-2012-05-301-2/+2
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+20
|
* Use FindNickOnly in a few commands to prevent enumerating users via UID walkingGravatar Daniel De Graaf2010-04-021-1/+1
|
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReaderGravatar danieldg2009-10-181-13/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7
* Make classbase and refcountbase uncopyable; expand comments on their ↵Gravatar danieldg2009-10-171-2/+2
| | | | | | indended uses git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11888 e03df62e-2008-0410-955e-edbf42e46eb7