summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
AgeCommit message (Collapse)Author
2018-08-10Remove the original line parameter of On{Pre,Post}Command.Peter Powell
In the brave new world of message tags and alternate wire formats this is no longer something that is appropriate to expose. In reality it was only ever used by m_alias which now reconstitutes the command name and parameters into a RFC 1459-style message for whatever it needs to do.
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-04-22Merge tag 'v2.0.26' into master.Peter Powell
2018-04-11Fix blank instead of empty PART message when a user is shunnedB00mX0r
2018-04-08Move OnStats from the core to a cross-module event.Peter Powell
Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
2017-12-21Add SHUN as a /filter actionB00mX0r
This resolves #483
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-12Merge tag 'v2.0.25' into master.Peter Powell
2017-11-09Work around removing shuns on nicks when the nick is online.Peter Powell
2017-10-19Switch from std::stringstream to irc::spacesepstream.Peter Powell
The latter is more suited to the things we have previously been using std::stringstream for.
2017-07-12Add CXX11_OVERRIDE to overridden members that lack it.Peter Powell
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
2016-09-12m_shun Add support for shunning CIDR masksAttila Molnar
Issue #1195
2016-02-25Introduce Stats::Context, pass it to the OnStats hook and switch all code to itAttila Molnar
2015-02-15Convert mods calling the old compat wrapper of ModuleManager::SetPriority() ↵Attila Molnar
to use the current method, remove wrapper
2014-12-15Change type of some associative containers to their flat versions, including ↵Attila Molnar
Extensible storage
2013-12-15Make various self contained methods static.Peter Powell
- InspIRCd::IsValidMask - InspIRCd::TimeString
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-21Convert XLine::Displayable to return a std::string.Peter Powell
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-10Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()attilamolnar
2013-04-09XLine: Provide a default implementation for DisplayExpiry()attilamolnar
2013-04-03Convert InspIRCd::Duration() to be staticattilamolnar
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2013-04-01Move member variables from User to LocalUserattilamolnar
- idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
2012-12-15Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a ↵attilamolnar
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
2012-12-05m_cban, m_rline, m_shun Don't broadcast when user is a local userattilamolnar
spanningtree sends an ADDLINE in this case
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-04m_cban, m_rline, m_shun Broadcast these commands as some services ↵attilamolnar
implementations send them (even though they shouldn't)
2012-09-30Fix more undefined behavior caused by referencing the returned buffer by ↵attilamolnar
std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
2012-09-13m_shun Convert enabled commands to uppercase so they match correctly even if ↵attilamolnar
they're lowercase in the config
2012-07-07m_shun Display shun target correctly in the error message when adding a new ↵attilamolnar
shun and it exists
2012-06-17m_shun Fix out of bounds vector access leading to crashes when hiding part ↵attilamolnar
reason for a shunned user
2012-06-17m_shun Fix a couple of things, namelyattilamolnar
- 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
2012-05-30Module description updatesRobby-
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2012-01-21Make m_shun work on aliasesJens Voss
2011-08-27Fix stats letter for shunsJackmcbarn
2011-06-23Resolve /STATS S conflict between SVSHOLD and SHUNDaniel De Graaf
2010-01-18PreCommand/PostCommand are local-only hooksdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12291 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-21Change module API to use LocalUser* where correctdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7