aboutsummaryrefslogtreecommitdiff
path: root/src/modes
Commit message (Expand)AuthorAgeFilesLines
* 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
* cmode_k Fix oversight in substr() conversion•••While at it, introduce a named constant for maximum key length Gravatar Attila Molnar2015-01-141-1/+2
* Reduce std::string::substr() usage•••substr() returns a new string while erase() and assign() modify the existing one Gravatar Attila Molnar2015-01-101-1/+1
* cmode_l Reject negative limitsGravatar Attila Molnar2014-09-051-1/+5
* Migrate ModeChannelOp and ModeChannelVoice constructors to builtinmodes.h, re...•••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 Gravatar Attila Molnar2014-08-062-58/+0
* 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 P...•••- 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 Gravatar Attila Molnar2014-02-152-12/+32
* Introduce Server class•••- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine() Gravatar Attila Molnar2014-01-051-3/+2
* Use WriteNumeric() everywhere we send numerics and include the user's nick au...Gravatar Adam2013-11-121-1/+1
* Create a base class for prefix modes•••Move Channel::SetPrefix() into Membership Gravatar attilamolnar2013-09-112-16/+2
* umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functionsGravatar attilamolnar2013-07-241-76/+56
* Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the U...Gravatar attilamolnar2013-07-191-2/+99
* Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() w...Gravatar attilamolnar2013-07-012-7/+7
* Call Channel::SetModeParam() from the mode parser when needed instead of requ...Gravatar attilamolnar2013-06-131-17/+2
* Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank()...Gravatar attilamolnar2013-06-062-10/+2
* 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()•••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 Gravatar attilamolnar2013-05-273-12/+0
* | Deduplicate RemoveMode() implementations•••The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory Gravatar attilamolnar2013-05-273-61/+0
* | Add method for writing server notices.•••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. Gravatar Peter Powell2013-05-141-3/+1
* | 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 conditional•••It was possible to set one more ban beyond the configured limit. Gravatar Robby-2013-01-031-1/+1
* Change empty string assignments to .clear() or remove them entirely•••Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f Gravatar attilamolnar2012-11-281-10/+10
* 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 commands•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12387 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-062-2/+2
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-1115-15/+15
* Remove mode counter, not reliable and only used for umode +i•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12246 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-093-15/+0
* Add ParamChannelModeHandler•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12134 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-11-151-31/+7
* Hide channel mode structures•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12132 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-11-151-15/+1
* Create m_halfop•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11997 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-11-031-64/+0
* Get rid of ModePair•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11963 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-246-93/+0
* Change User::oper to an OperInfo reference•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11945 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-1/+1
* Add names for all modes (part 1 of named channel mode list)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11809 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-0816-16/+16
* Fix valgrind issues and crashes on exit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-021-1/+1
* Change IS_FAKE and CheckTimeStamp to IS_SERVER and ResolveModeConflict to cla...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11765 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-1/+1
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-2616-18/+18
* Simplify ModeHandler constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11701 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-1311-11/+26
* Replace OnAccessCheck with OnPreMode to remove a number of redundant checks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11700 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-133-229/+3
* Membership* changes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11697 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-134-50/+41
* ModResult conversion: Change return type of all module functions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-024-31/+31
* Remove "servermode" parameter, replace with IS_FAKE() which is more reliable•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11633 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-029-12/+12