aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-3/+7
|\
| * Work around removing shuns on nicks when the nick is online.Gravatar Peter Powell2017-11-091-2/+6
| |
* | Switch from std::stringstream to irc::spacesepstream.Gravatar Peter Powell2017-10-191-2/+2
| | | | | | | | | | The latter is more suited to the things we have previously been using std::stringstream for.
* | Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-121-1/+1
| | | | | | | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* | m_shun Add support for shunning CIDR masksGravatar Attila Molnar2016-09-121-0/+3
| | | | | | | | Issue #1195
* | Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-3/+3
| |
* | Convert mods calling the old compat wrapper of ModuleManager::SetPriority() ↵Gravatar Attila Molnar2015-02-151-1/+1
| | | | | | | | to use the current method, remove wrapper
* | Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-4/+2
| | | | | | | | Extensible storage
* | Make various self contained methods static.Gravatar Peter Powell2013-12-151-1/+1
| | | | | | | | | | - InspIRCd::IsValidMask - InspIRCd::TimeString
* | 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-3/+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-2/+2
|\|
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-2/+2
| |
* | Convert XLine::Displayable to return a std::string.Gravatar Peter Powell2013-05-211-2/+2
| |
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-6/+6
| | | | | | | | | | - 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-3/+3
| | | | | | | | | | | | | | | | | | 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.
* | Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()Gravatar attilamolnar2013-04-101-1/+1
| |
* | XLine: Provide a default implementation for DisplayExpiry()Gravatar attilamolnar2013-04-091-6/+0
| |
* | Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-2/+2
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-5/+0
| |
* | Move member variables from User to LocalUserGravatar attilamolnar2013-04-011-2/+3
|/ | | | | | | | - idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
* Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a ↵Gravatar attilamolnar2012-12-151-2/+2
| | | | | | target nickname If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
* m_cban, m_rline, m_shun Don't broadcast when user is a local userGravatar attilamolnar2012-12-051-0/+3
| | | | spanningtree sends an ADDLINE in this case
* Register all commands, modes and extensions using AddService()Gravatar attilamolnar2012-12-021-1/+1
| | | | 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-4/+4
|
* m_cban, m_rline, m_shun Broadcast these commands as some services ↵Gravatar attilamolnar2012-10-041-1/+1
| | | | implementations send them (even though they shouldn't)
* Fix more undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-301-1/+2
| | | | | | std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
* m_shun Convert enabled commands to uppercase so they match correctly even if ↵Gravatar attilamolnar2012-09-131-0/+1
| | | | they're lowercase in the config
* m_shun Display shun target correctly in the error message when adding a new ↵Gravatar attilamolnar2012-07-071-1/+1
| | | | shun and it exists
* m_shun Fix out of bounds vector access leading to crashes when hiding part ↵Gravatar attilamolnar2012-06-171-2/+2
| | | | reason for a shunned user
* m_shun Fix a couple of things, namelyGravatar attilamolnar2012-06-171-57/+25
| | | | | | | | - remove OnUserConnect hook as it was completly a no-op - remove call to XLineManager::ApplyLines() as it iterates the local userlist and made no sense - return CMD_SUCCESS when /SHUN succeeded, CMD_FAILURE otherwise - remove unused exception handler - don't route SHUN commands at all, spanningtree adds and removes the lines automatically
* Module description updatesGravatar Robby-2012-05-301-2/+2
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* Make m_shun work on aliasesGravatar Jens Voss2012-01-211-0/+6
|
* Fix stats letter for shunsGravatar Jackmcbarn2011-08-271-2/+1
|
* Resolve /STATS S conflict between SVSHOLD and SHUNGravatar Daniel De Graaf2011-06-231-1/+1
|
* PreCommand/PostCommand are local-only hooksGravatar danieldg2010-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12291 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
* Change module API to use LocalUser* where correctGravatar danieldg2009-10-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 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
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-7/+7
| | | | 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
* Introduce "X" snomask for remote *:line messages [patch by jackmcbarn]Gravatar danieldg2009-09-141-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11721 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
* Remove CMD_LOCALONLY, enforce use of GetRouting for routed commandsGravatar danieldg2009-09-031-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11671 e03df62e-2008-0410-955e-edbf42e46eb7
* ModResult conversion: Change return type of all module functionsGravatar danieldg2009-09-021-9/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7