aboutsummaryrefslogtreecommitdiff
path: root/src/modes
Commit message (Collapse)AuthorAgeFilesLines
* Extract RFC modes from the core to core_channel and core_user.Gravatar Peter Powell2017-12-104-317/+0
|
* Update a bunch of references to the old command modules.Gravatar Peter Powell2017-08-271-1/+1
|
* Make ModeHandler::GetUserParameter() const, accept const UserGravatar Attila Molnar2016-12-301-1/+1
|
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-1/+1
| | | | parameters
* cmode_k Fix oversight in substr() conversionGravatar Attila Molnar2015-01-141-1/+2
| | | | While at it, introduce a named constant for maximum key length
* Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-1/+1
| | | | substr() returns a new string while erase() and assign() modify the existing one
* cmode_l Reject negative limitsGravatar Attila Molnar2014-09-051-1/+5
|
* Migrate ModeChannelOp and ModeChannelVoice constructors to builtinmodes.h, ↵Gravatar Attila Molnar2014-08-062-58/+0
| | | | | | remove cmode_{o,v} The default value for levelrequired is HALFOP_VALUE, meaning the ModeChannelVoice class is not required but it will be useful in case the default changes
* Pass prefix rank and prefix char to PrefixMode constructorGravatar Attila Molnar2014-08-062-6/+2
|
* Kill needless #includes in source filesGravatar Attila Molnar2014-06-146-22/+0
|
* Add ParamModeBase and ParamMode, change all parameter modes to inherit from ↵Gravatar Attila Molnar2014-02-152-12/+32
| | | | | | | | | | ParamMode - Type of the extension used to store data is a template parameter - The extension is automatically unset when the mode is unset - Handlers inheriting from ParamMode have to provide OnSet() and SerializeParam(); may optionally provide OnUnset() - Transparently handle the case when OnSet() modifies the mode parameter - Remove Channel::custom_mode_params map; ask the mode handlers to serialize their parameters instead
* Introduce Server classGravatar Attila Molnar2014-01-051-3/+2
| | | | | - 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-1/+1
| | | | automatically
* Create a base class for prefix modesGravatar attilamolnar2013-09-112-16/+2
| | | | Move Channel::SetPrefix() into Membership
* umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functionsGravatar attilamolnar2013-07-241-76/+56
|
* Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the ↵Gravatar attilamolnar2013-07-191-2/+99
| | | | User class to the snomask modehandler
* Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() ↵Gravatar attilamolnar2013-07-012-7/+7
| | | | with ModeHandlers, part 1
* Call Channel::SetModeParam() from the mode parser when needed instead of ↵Gravatar attilamolnar2013-06-131-17/+2
| | | | requiring mode handlers to do it
* Store prefix rank in a ModeHandler field, change ↵Gravatar attilamolnar2013-06-062-10/+2
| | | | ModeHandler::GetPrefixRank() to be non-virtual
* Merge insp20Gravatar attilamolnar2013-06-061-1/+1
|\
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-1/+1
| |
* | Simplify user mode removal via ModeHandler::RemoveMode()Gravatar attilamolnar2013-05-273-12/+0
| | | | | | | | | | The function does not need to be virtual because the core can remove any user mode using the default logic The optional modestack parameter was always NULL, so remove it
* | Deduplicate RemoveMode() implementationsGravatar attilamolnar2013-05-273-61/+0
| | | | | | | | | | The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory
* | Add method for writing server notices.Gravatar Peter Powell2013-05-141-3/+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.
* | Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()Gravatar attilamolnar2013-04-101-1/+1
| |
* | Migrate u_listmode.h into the core, change +b to use itGravatar attilamolnar2013-04-081-177/+0
| |
* | Unite include/modes/*.h into include/builtinmodes.hGravatar attilamolnar2013-04-087-7/+7
| |
* | Purge the deprecated hash_map from existance.Gravatar Peter Powell2013-04-011-2/+1
|/
* cmode_b: Correction to the maxbans conditionalGravatar Robby-2013-01-031-1/+1
| | | | It was possible to set one more ban beyond the configured limit.
* Change empty string assignments to .clear() or remove them entirelyGravatar attilamolnar2012-11-281-10/+10
| | | | Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
* Move simple user and channel mode handlers into a single fileGravatar attilamolnar2012-10-088-237/+0
|
* Fix maxbans not being enforcedGravatar attilamolnar2012-07-011-1/+1
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-1915-121/+233
|
* Do not apply parameter length restrictions or CleanMask when unsetting modesGravatar Daniel De Graaf2010-09-041-4/+1
|
* rename channel modes +it to distinguish them from commandsGravatar danieldg2010-02-062-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12387 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-1115-15/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove mode counter, not reliable and only used for umode +iGravatar danieldg2010-01-093-15/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12246 e03df62e-2008-0410-955e-edbf42e46eb7
* Add ParamChannelModeHandlerGravatar danieldg2009-11-151-31/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12134 e03df62e-2008-0410-955e-edbf42e46eb7
* Hide channel mode structuresGravatar danieldg2009-11-151-15/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12132 e03df62e-2008-0410-955e-edbf42e46eb7
* Create m_halfopGravatar danieldg2009-11-031-64/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11997 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of ModePairGravatar danieldg2009-10-246-93/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11963 e03df62e-2008-0410-955e-edbf42e46eb7
* Change User::oper to an OperInfo referenceGravatar danieldg2009-10-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11945 e03df62e-2008-0410-955e-edbf42e46eb7
* Add names for all modes (part 1 of named channel mode list)Gravatar danieldg2009-10-0816-16/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11809 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix valgrind issues and crashes on exitGravatar danieldg2009-10-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7
* Change IS_FAKE and CheckTimeStamp to IS_SERVER and ResolveModeConflict to ↵Gravatar danieldg2009-09-261-1/+1
| | | | | | clarify their use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11765 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-2616-18/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Simplify ModeHandler constructorGravatar danieldg2009-09-1311-11/+26
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11701 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace OnAccessCheck with OnPreMode to remove a number of redundant checksGravatar danieldg2009-09-133-229/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11700 e03df62e-2008-0410-955e-edbf42e46eb7
* Membership* changesGravatar danieldg2009-09-134-50/+41
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11697 e03df62e-2008-0410-955e-edbf42e46eb7
* ModResult conversion: Change return type of all module functionsGravatar danieldg2009-09-024-31/+31
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7