aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_rline.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+0
|
* Fix unnecessarily using c_str in parameters that take a std::string.Gravatar Sadie Powell2022-09-041-2/+2
|
* Update copyright headers.Gravatar InspIRCd Robot2022-04-281-1/+1
|
* Use consistent xline messages locallyGravatar Sadie Powell2022-04-051-3/+11
| | | | | | | | | | | For connectban these messages would have previously been duplicated to other servers until this was fixed earlier today. For dnsbl and rline they would have just differed on the local to a remote. As of the previous commit the module name is included in the setter so there is no need to vary the snotice. This makes things more consistent for server operators and allows scripts to parse the messages.
* Include the module name in the setter for server-added xlines.Gravatar Sadie Powell2022-04-051-1/+1
|
* Fix the grammar of various xline messages.Gravatar Sadie Powell2022-04-051-2/+2
|
* Fix various documentation comments.Gravatar Sadie Powell2021-03-311-11/+0
|
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
|
* Update the module descriptions using mkversion.Gravatar Sadie Powell2020-04-101-1/+1
|
* Generalise XLine stats numerics using RPL_STATS from aircd.Gravatar Sadie Powell2020-02-181-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-3/+9
|
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-5/+5
|
* Start using DurationString() in X-line additions andGravatar Matt Schatz2019-02-181-6/+6
| | | | a few other modules where it fits better than just showing seconds.
* Various text improvements: consistency, syntax, help and doc updates/fixes.Gravatar Robby2019-02-181-1/+1
|
* Add the reason to xline removal notices. (#1545)Gravatar Matt Schatz2019-01-241-2/+4
| | | | | | | | | Show the reason in manual xline removal SNOTICEs, just like expiry SNOTICEs do. This modifies XLineManager::DelLine() to require another string reference passed to it. Requested by @Robby-.
* Improve X-line text consistency.Gravatar Matt Schatz2019-01-091-9/+9
| | | | | | | | | | - Change any "-Line", ":Line", or "*line" to "-line" throughout the X-line code, comments, and documentation. - Add periods to the end of some notices. - Correct a typo in the Q-line code comments. - Update the filter module documentation (shun addition). Co-authored-by: Robby <robby@chatbelgie.be>
* Only parse valid durations, don't treat invalid multipliers as seconds (#1538)Gravatar linuxdaemon2018-12-211-1/+6
|
* Store durations as unsigned long not long in XLine and m_filter.Gravatar Peter Powell2018-12-131-2/+2
|
* Rename User::fullname to realname and make it private.Gravatar Peter Powell2018-07-301-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.
* Move OnStats from the core to a cross-module event.Gravatar Peter Powell2018-04-081-2/+6
| | | | | Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-7/+7
| | | | GCCs warnings for this are much better than Clangs.
* 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.
* Make RLines match against IP as well as hostGravatar genius30002017-10-101-2/+3
|
* 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.
* Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-3/+3
|
* Clean up CoreExceptionGravatar Attila Molnar2013-12-181-1/+1
| | | | | - Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
* Make various self contained methods static.Gravatar Peter Powell2013-12-151-2/+2
| | | | | - 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-3/+0
|
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
|
* Merge insp20Gravatar attilamolnar2013-06-061-3/+2
|\
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-3/+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-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-4/+44
|\|
| * m_rline Switch to OnUserRegister hook to disconnect banned users earlierGravatar attilamolnar2013-04-211-2/+10
| |
| * m_filter, m_rline Remove rlines and filters when the regex engine changes or ↵Gravatar attilamolnar2013-04-211-3/+35
| | | | | | | | becomes unavailable
* | Tidy up source files:Gravatar Peter Powell2013-04-121-1/+1
| | | | | | | | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* | XLine: Provide a default implementation for DisplayExpiry()Gravatar attilamolnar2013-04-091-6/+0
| |
* | Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-1/+1
| |
* | 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
* 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
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-4/+4
|