aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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-3/+3
| | | | GCCs warnings for this are much better than Clangs.
* Switch to irc::equals() from irc::string in modules that use it for ↵Gravatar Attila Molnar2016-08-221-4/+4
| | | | comparing names of IRC objects
* Simplify GetRouting() methods doing unicastGravatar Attila Molnar2016-03-291-4/+1
|
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-7/+7
| | | | parameters
* m_silence Change silencelist type to vectorGravatar Attila Molnar2015-06-031-3/+3
|
* m_silence Remove unused parameters from OnBuildExemptList and rename itGravatar Attila Molnar2015-06-031-2/+2
|
* modules/m_silence: Allow U-lined services to bypass silence masksGravatar Renegade3342015-02-051-1/+9
| | | | | Adds a config entry (silence->exemptuline) that specifies whether users on U-lined servers can bypass silence masks.
* Specify which Extensible subclass an ExtensionItem is valid forGravatar Attila Molnar2015-01-181-1/+2
|
* Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-1/+1
| | | | substr() returns a new string while erase() and assign() modify the existing one
* Remove typedef UserMembCIter, use Channel::MemberMap::const_iterator insteadGravatar Attila Molnar2014-07-141-1/+1
|
* Rename UserMembList to Channel::MemberMap, switch all code to use itGravatar Attila Molnar2014-07-141-1/+1
|
* Change return type of Channel::GetUsers() to reference from pointer as it is ↵Gravatar Attila Molnar2014-07-141-2/+2
| | | | never NULL
* Change allocation of InspIRCd::Parser to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | containing it
* Merge insp20Gravatar Attila Molnar2014-01-211-2/+2
|\
| * Fix m_silence looking for maxentries in <showwhois> instead of <silence>.Gravatar Peter Powell2013-10-261-1/+1
| | | | | | | | Fixes issue #644.
| * Improve support for rarely used compilers, EKOPath in this case.Gravatar ChrisTX2013-08-311-1/+1
| |
* | Stop null checking pointers that are always validGravatar Attila Molnar2014-01-091-8/+1
| |
* | Introduce Server classGravatar Attila Molnar2014-01-051-1/+1
| | | | | | | | | | - Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-7/+7
| | | | | | | | 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-2/+1
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-3/+0
| |
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
| |
* | Remove TR_END, remove TRANSLATEx() from commands that do not need itGravatar attilamolnar2013-06-131-2/+1
| |
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵Gravatar attilamolnar2013-05-201-14/+4
| | | | | | | | | | | | 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-7/+7
| | | | | | | | | | - 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-1/+1
| | | | | | | | | | | | | | | | | | 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 ISUPPORT to use a map instead of a string.Gravatar Peter Powell2013-04-111-3/+3
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-4/+0
|/
* Add a flag to Command that controls whether an empty last parameter is ↵Gravatar attilamolnar2012-12-151-0/+1
| | | | allowed or not
* Register all commands, modes and extensions using AddService()Gravatar attilamolnar2012-12-021-3/+3
| | | | 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-0/+4
|
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-2/+1
|
* Fix more undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-301-5/+9
| | | | | | std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+18
|
* Fix bug 126, thanks to SebGravatar DjSlash2011-03-301-1/+1
|
* Register the silence list extensionGravatar Jackmcbarn2010-10-151-0/+1
|
* Fix crash in m_silence when provided with a bad pattern (bug #79)Gravatar Daniel De Graaf2010-09-041-8/+17
|
* Route SVSSILENCE/SVSWATCH using OPT_UCAST, marking them OPTCOMMONGravatar danieldg2010-01-151-3/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12264 e03df62e-2008-0410-955e-edbf42e46eb7
* ...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 dummy API_VERSION from Version constructorGravatar danieldg2009-10-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnBuildNeighborList hook, replaces all uses of OnHostCycleGravatar danieldg2009-10-051-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11802 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Describe module purpose in /MODULES outputGravatar danieldg2009-09-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up Command constructorGravatar danieldg2009-09-131-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11707 e03df62e-2008-0410-955e-edbf42e46eb7
* Membership* changesGravatar danieldg2009-09-131-18/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11697 e03df62e-2008-0410-955e-edbf42e46eb7
* Change Extensible to use strongly typed entriesGravatar danieldg2009-09-131-38/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11696 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove CMD_LOCALONLY, enforce use of GetRouting for routed commandsGravatar danieldg2009-09-031-2/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11671 e03df62e-2008-0410-955e-edbf42e46eb7