summaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.cpp
AgeCommit message (Collapse)Author
2018-08-14Fix a bunch more conflicting/unnamed numerics.Peter Powell
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.
2018-07-24Make more config stuff case insensitive.Peter Powell
2018-04-16Add ConfigTag::getUInt for reading unsigned config values.Peter Powell
2018-02-02Add names for a bunch of numerics.Peter Powell
2018-01-06Rework message handling.Peter Powell
- 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.
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-10-28Hide User#host and User#dhost and use accessors to modify them.Peter Powell
This removes the need to invalidate the cache after changing a user's hostname.
2016-08-22Add stdalgo::string::equalsci and use it instead of irc::string for ↵Attila Molnar
case-insensitive comparison
2016-08-17Merge insp20Attila Molnar
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2016-02-24m_dccallow Call WriteNumeric() in a loop when displaying helpAttila Molnar
2016-02-22Merge insp20Attila Molnar
2016-02-18Fix dccallow to work with files with spaces in their namesAdam
2016-02-12m_dccallow Add config option to control max entries on a listAttila Molnar
Default to 20
2015-12-07Remove some IS_SERVER() checksAttila Molnar
- 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
2015-04-20Merge insp20Attila Molnar
2015-04-16m_dccallow Validate tokens before useAttila Molnar
2015-01-18Specify which Extensible subclass an ExtensionItem is valid forAttila Molnar
2015-01-10Reduce std::string::substr() usageAttila Molnar
substr() returns a new string while erase() and assign() modify the existing one
2014-11-01Add stdalgo::erase() and use it to simplify codeAttila Molnar
2014-07-25Merge insp20Attila Molnar
2014-04-12Correct the syntax messages of a few modules.Robby-
2014-01-21Merge insp20Attila Molnar
2014-01-19m_dccallow Increase penalty for /DCCALLOW helpAttila 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-08Change allocation of a few services to make use of auto registrationattilamolnar
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-30Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵attilamolnar
and on rehash This eliminates the need for calling OnRehash() in init()
2013-08-04Automatically attach modules to eventsattilamolnar
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-06Merge insp20attilamolnar
2013-06-05Remove unnecessary string copies and dead codeattilamolnar
2013-05-20Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵attilamolnar
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
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-03Convert InspIRCd::Duration() to be staticattilamolnar
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
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-12Remove usage of the deprecated ConfigReaderattilamolnar
2012-10-12Remove superfluous std::string()sattilamolnar
2012-07-01m_callerid, m_dccallow Use OnUserPostNick hook instead of OnUserPreNickattilamolnar
2012-07-01m_callerid, m_dccallow Fix crash caused by allowing unregistered users and ↵attilamolnar
SIDs to be on callerid/dccallow lists
2012-07-01m_dccallow Fix unsafe iterationattilamolnar
2012-05-30Module description updatesRobby-
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-