aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_callerid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pass the Extensible container to ExtensionItem::free().Gravatar Peter Powell2018-08-121-2/+2
|
* 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.
* 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.Gravatar Peter Powell2018-02-071-0/+1
| | | | | | | | | | | - 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
* Rework message handling.Gravatar Peter Powell2018-01-061-3/+3
| | | | | | | | | | | | | - 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.
* 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.Gravatar Peter Powell2017-11-211-6/+6
| | | | GCCs warnings for this are much better than Clangs.
* 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.Gravatar Peter Powell2017-10-281-1/+1
| | | | | This removes the need to invalidate the cache after changing a user's hostname.
* 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 ↵Gravatar Attila Molnar2016-02-251-2/+2
| | | | numerics to it
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-8/+8
| | | | parameters
* 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() checksGravatar Attila Molnar2015-12-071-2/+2
| | | | | | | | | | - 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
* | m_callerid Prioritize after other mods for the OnUserPreMessage hookGravatar Attila Molnar2015-06-031-0/+6
| | | | | | | | Issue #1051
* | 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
| | | | | | | | Extensible storage
* | 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 ↵Gravatar Attila Molnar2014-01-191-3/+14
| | | | | | | | action to prevent UID walking
| * Fix ACCEPT propagation bug when it got a nick prefixed with +Gravatar Daniel Vassdal2013-12-091-0/+3
| | | | | | | | | | Fixes #696 Does not apply to 2.2 due to Attila's rewrite of the module
* | Remove PreText()-like functionsGravatar Attila Molnar2014-01-081-9/+5
| | | | | | | | Do processing in OnUserPreMessage()
* | Fix a few issuesGravatar attilamolnar2013-11-211-1/+1
| | | | | | | | | | | | | | | | | | - 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
* | These two numerics are supposed to use SentText() as they can go to remote ↵Gravatar Adam2013-11-121-2/+2
| | | | | | | | users...
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-11/+23
| | | | | | | | automatically
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-7/+0
| |
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-3/+1
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-3/+0
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-5/+5
| | | | | | | | | | | | | | | | 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.
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
| |
* | Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() ↵Gravatar attilamolnar2013-07-011-1/+1
| | | | | | | | with ModeHandlers, part 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 ↵Gravatar attilamolnar2013-06-121-53/+72
| | | | | | | | | | | | METADATA at all ACCEPTs coming from 2.0 servers with a list of uuids are broadcast, as before
* | CommandParser::LoopCall() changesGravatar attilamolnar2013-06-121-1/+1
| | | | | | | | | | | | - 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
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵Gravatar attilamolnar2013-05-201-10/+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-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.
* | Merge insp20Gravatar attilamolnar2013-04-281-23/+37
|\|
| * Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected ↵Gravatar attilamolnar2013-04-211-0/+11
| | | | | | | | errors in m_callerid
| * 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_dataGravatar attilamolnar2013-04-181-22/+23
| | | | | | | | | | | | This also fixes a memory leak that didn't occur naturally but was triggerable by remote servers Thanks to @SimosNap for the report