aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customprefix.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-2/+2
* Replace getInt/getUInt/getFloat with type safe templated functions.Gravatar Sadie Powell2023-01-251-6/+6
* Convert log calls to use fmtlib format stringsGravatar Sadie Powell2023-01-241-4/+4
* Qualify auto correctly in all cases.Gravatar Sadie Powell2023-01-101-1/+1
* Avoid copying shared_ptr<ConfigTag> when not necessary.Gravatar Sadie Powell2023-01-101-1/+1
* Use auto in places where it is really obvious what the type is.Gravatar Sadie Powell2022-09-041-1/+1
* Add a typedef for a mode rank.Gravatar Sadie Powell2022-05-171-10/+12
* Rewrite logging calls to use the new APIs.Gravatar Sadie Powell2022-05-011-2/+2
* Merge branch 'insp3' into master.Gravatar Sadie Powell2022-03-271-1/+1
|\
* | Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-3/+3
* | Always catch exceptions as a constant reference.Gravatar Sadie Powell2022-01-091-1/+1
* | Refactor CoreException and ModuleException.Gravatar Sadie Powell2022-01-071-7/+7
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-01-031-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-12-301-1/+1
* | Mark all mode classes as final.Gravatar Sadie Powell2021-10-011-1/+2
* | Mark all module classes as final.Gravatar Sadie Powell2021-10-011-1/+2
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-09-161-0/+3
|\|
| * Fix customprefix allowing mode names that contain spaces.Gravatar Sadie Powell2021-09-161-0/+3
* | Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-6/+6
* | Fix a ton of pedantic compiler warnings.Gravatar Sadie Powell2021-04-041-1/+1
* | Constify variables within loops.Gravatar Sadie Powell2021-04-011-1/+1
* | Move FilePosition to fileutils.h and use in ConfigTag.Gravatar Sadie Powell2020-11-031-6/+6
* | Convert ConfigTag from reference<> to std::shared_ptr<>.Gravatar Sadie Powell2020-10-311-2/+2
* | Add stdalgo::iterator_range and switch config tag reading to use it.•••This allows us to use range-based for loops which were not possible with the previous config tag system. Gravatar Sadie Powell2020-10-311-4/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-111-1/+1
|\|
| * Update the module descriptions using mkversion.Gravatar Sadie Powell2020-04-101-1/+1
* | Improve storage of module description, flags, and link data.Gravatar Sadie Powell2020-04-111-5/+7
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-0/+3
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-0/+3
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-05-151-1/+1
|\|
| * Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-1/+1
* | ModuleManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
* | ModeParser: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-2/+2
* | Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-2/+2
|/
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-6/+6
* Fix customprefix modes not being deleted when the module unloads.Gravatar Peter Powell2018-04-141-0/+1
* Enable using m_customprefix to alter core prefix modes.•••This replaces the devoice module which has now been removed. If you want users to be able to devoice themselves then you can load the customprefix module add the following config tag: <customprefix name="voice" depriv="yes"> If you wish to keep identical behaviour rather than allowing users to use "MODE #YourChannel -v TheirNick" then you can load the alias module and add the following config tag: <alias text="DEVOICE" format="#*" replace="MODE $2 -v $nick"> Gravatar Peter Powell2017-11-061-4/+29
* Clean up the configuration reading in m_customprefix.•••- Rework the code flow to be more readable. - Ensure that the name is well formed. - Allow prefix modes with a rank of zero. Gravatar Peter Powell2017-11-061-15/+19
* Move depriv from m_customprefix into PrefixMode.Gravatar Peter Powell2017-11-061-9/+1
* Add support for setting the unset rank in ModeHandler.Gravatar Peter Powell2017-11-061-1/+2
* Pass prefix rank and prefix char to PrefixMode constructorGravatar Attila Molnar2014-08-061-2/+1
* Add stdalgo::delete_all() that deletes all elements in a containerGravatar Attila Molnar2014-03-241-2/+1
* Clean up CoreException•••- Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs Gravatar Attila Molnar2013-12-181-1/+1
* Create a base class for prefix modes•••Move Channel::SetPrefix() into Membership Gravatar attilamolnar2013-09-111-9/+3
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
* Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank()...Gravatar attilamolnar2013-06-061-9/+4
* 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-271-4/+0
* Deduplicate RemoveMode() implementations•••The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory Gravatar attilamolnar2013-05-271-30/+0
* Tidy up keywords on module methods.•••- 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. Gravatar Peter Powell2013-05-151-2/+2