aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_callerid.cpp
Commit message (Expand)AuthorAgeFilesLines
* Pass the Extensible container to ExtensionItem::free().Gravatar Peter Powell2018-08-121-2/+2
* Use CommandBase::Params instead of std::vector<std::string>.•••This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters. Gravatar Peter Powell2018-07-261-2/+2
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-1/+1
* Use an oper priv instead of a config flag for overriding callerid.Gravatar Peter Powell2018-04-161-3/+1
* Send the ACCEPT and KEYLEN ISUPPORT tokens.•••- The ACCEPT=[count] token specifies the maximum amount of nicks which can be added to a m_callerid accept list. This token was added by ircd-ratbox in 3.0.9. - The KEYLEN=[length] token specifies the maximum length of a channel key. This token was added by ircd-ratbox in 3.1 beta. For more info see http://defs.ircdocs.horse/defs/isupport.html Gravatar Peter Powell2018-02-071-0/+1
* Rework message handling.•••- 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. Gravatar Peter Powell2018-01-061-3/+3
* Don't hardcode mode characters which are sent in 005 tokens.Gravatar Peter Powell2017-12-291-1/+1
* Add the override keyword in places that it is missing.•••GCCs warnings for this are much better than Clangs. Gravatar Peter Powell2017-11-211-6/+6
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+1
* Only subclass Simple{Channel,User}ModeHandler when necessary.Gravatar Peter Powell2017-11-131-8/+4
* Hide User#host and User#dhost and use accessors to modify them.•••This removes the need to invalidate the cache after changing a user's hostname. Gravatar Peter Powell2017-10-281-1/+1
* Convert a bunch of time-related config options to getDuration.Gravatar Peter Powell2017-09-031-1/+1
* Add User::WriteRemoteNumeric() and switch code using SendText() to send numer...Gravatar Attila Molnar2016-02-251-2/+2
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ...Gravatar Attila Molnar2016-02-251-8/+8
* Merge insp20Gravatar Attila Molnar2016-02-221-4/+5
|\
| * m_callerid Free old extension data before unserializing the new dataGravatar Attila Molnar2016-02-131-4/+5
* | Remove some IS_SERVER() checks•••- 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 Gravatar Attila Molnar2015-12-071-2/+2
* | m_callerid Prioritize after other mods for the OnUserPreMessage hook•••Issue #1051 Gravatar Attila Molnar2015-06-031-0/+6
* | Specify which Extensible subclass an ExtensionItem is valid forGravatar Attila Molnar2015-01-181-1/+1
* | Change type of some associative containers to their flat versions, including ...Gravatar Attila Molnar2014-12-151-1/+1
* | m_callerid Change CallerIdDataSet (wholistsme) to be a vectorGravatar Attila Molnar2014-12-101-3/+3
* | m_callerid Add typedefs for containers in callerid_dataGravatar Attila Molnar2014-12-101-6/+9
* | m_callerid Simplify code interacting with containersGravatar Attila Molnar2014-12-101-12/+3
* | Add stdalgo::erase() and use it to simplify codeGravatar Attila Molnar2014-11-011-9/+2
* | Merge insp20Gravatar Attila Molnar2014-07-251-1/+1
|\|
| * Correct the syntax messages of a few modules.Gravatar Robby-2014-04-121-1/+1
* | Merge insp20Gravatar Attila Molnar2014-01-211-4/+9
|\|
| * Use FindNickOnly() in a few more places if a local user is performing an acti...Gravatar Attila Molnar2014-01-191-3/+14
| * Fix ACCEPT propagation bug when it got a nick prefixed with +•••Fixes #696 Does not apply to 2.2 due to Attila's rewrite of the module Gravatar Daniel Vassdal2013-12-091-0/+3
* | Remove PreText()-like functions•••Do processing in OnUserPreMessage() Gravatar Attila Molnar2014-01-081-9/+5
* | Fix a few issues•••- Rehash notices - Modes in CAPAB - GetTargetAndAction() not being static in m_callerid - Loading custom configuration files using --config. (@SaberUK) - ServerConfig::Read not using std::endl. (@SaberUK) - Out of date comments in opers.conf.example, issue #624 Gravatar attilamolnar2013-11-211-1/+1
* | These two numerics are supposed to use SentText() as they can go to remote us...Gravatar Adam2013-11-121-2/+2
* | Use WriteNumeric() everywhere we send numerics and include the user's nick au...Gravatar Adam2013-11-121-11/+23
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-7/+0
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load a...•••This eliminates the need for calling OnRehash() in init() Gravatar attilamolnar2013-08-301-3/+1
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-3/+0
* | Change modules to use the MODNAME constant when logging.•••The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them. Gravatar Peter Powell2013-08-041-5/+5
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
* | Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() w...Gravatar attilamolnar2013-07-011-1/+1
* | Remove TR_END, remove TRANSLATEx() from commands that do not need itGravatar attilamolnar2013-06-131-1/+1
* | m_callerid Route ACCEPT to the server of the target user only, do not send ME...•••ACCEPTs coming from 2.0 servers with a list of uuids are broadcast, as before Gravatar attilamolnar2013-06-121-53/+72
* | CommandParser::LoopCall() changes•••- Change function to be static, return a bool - Do not filter duplicates when there are 2 lists (JOIN) - Remove validation of 'extra' parameter, caller must pass either a valid index or -1 Gravatar attilamolnar2013-06-121-1/+1
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to On...•••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 Gravatar attilamolnar2013-05-201-10/+2
* | Tidy up keywords on module methods.•••- 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. Gravatar Peter Powell2013-05-151-9/+9
* | Add method for writing server notices.•••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. Gravatar Peter Powell2013-05-141-2/+2
* | Merge insp20Gravatar attilamolnar2013-04-281-23/+37
|\|
| * Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected e...Gravatar attilamolnar2013-04-211-0/+11
| * m_callerid Allow messaging yourself while +g regardless of the ACCEPT listGravatar attilamolnar2013-04-191-1/+1
| * m_callerid Ignore duplicate entries when unserializing callerid_dataGravatar attilamolnar2013-04-181-3/+5
| * m_callerid Fix bookkeeping error introduced when unserializing callerid_data•••This also fixes a memory leak that didn't occur naturally but was triggerable by remote servers Thanks to @SimosNap for the report Gravatar attilamolnar2013-04-181-22/+23