aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_permchannels.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Some more text fixes and improvements (#1618).Gravatar Robby2019-04-281-1/+1
|
* m_permchannels: validate channel names properly.Gravatar Peter Powell2019-03-251-2/+2
|
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-1/+1
|
* Remove the default value in ConfigTag::get{Duration,Float,Int}.Gravatar Peter Powell2018-04-161-1/+1
|
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-1/+1
| | | | GCCs warnings for this are much better than Clangs.
* 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.
* Automatically apply +P to all permanent channels.Gravatar Peter Powell2017-04-141-0/+4
|
* Convert ModeHandler::GetNumParams() to NeedsParam() that returns a boolGravatar Attila Molnar2016-08-291-1/+1
|
* Refactor topic setting logic to go through Channel::SetTopic() in all casesGravatar Attila Molnar2016-04-111-6/+6
| | | | | - Pass topic set time and optionally the setter to SetTopic() - Don't do anything if the topic is changed by a local user to what it is currently
* Differ database error messages for m_permchannels and m_xline_dbGravatar Justin Crawford2014-07-291-6/+6
| | | | | | | | m_permchannels and m_xline_db both have the same error messages as well as not informing the server operator what file is at fault for the error. This makes it hard to find which module is causing the error and what file the module is referring to. The new messages explain which database is trying to be written and the path used to write the file.
* Merge insp20Gravatar Attila Molnar2014-07-251-6/+1
|\
| * Fix m_permchannels and m_xline_db on WindowsGravatar Adam2014-05-081-6/+1
| | | | | | | | | | | | The call to remove() can fail if the database doesn't already exist. Just ignore the error, which effectively makes the rename() call below work as it does on nix
* | Add InspIRCd::GetChans(), remove ChannelCount()Gravatar Attila Molnar2014-03-141-1/+2
| |
* | m_permchannels Remove pointless cleanup ceremony in cull()Gravatar Attila Molnar2014-03-141-26/+0
| |
* | Fix m_permchannels not prepending the path when reading the config.Gravatar Peter Powell2014-03-071-0/+3
| |
* | Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcntGravatar Attila Molnar2014-02-211-2/+2
| |
* | Remove whitespace and minor style changesGravatar Attila Molnar2014-01-231-2/+2
| |
* | Merge insp20Gravatar Attila Molnar2014-01-211-3/+3
|\|
| * Work around STB_GNU_UNIQUE symbols not allowing module unmapGravatar attilamolnar2013-09-151-3/+3
| |
* | Send ListModeBase modes implicitly on channel syncGravatar attilamolnar2013-09-121-38/+25
| | | | | | | | Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-5/+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()
* | Merge insp20Gravatar attilamolnar2013-08-301-19/+87
|\|
| * m_permchannels Fix empty topic setbyGravatar attilamolnar2013-08-281-0/+2
| |
| * m_permchannels Add the ability to save listmodesGravatar attilamolnar2013-08-271-4/+70
| |
| * m_permchannels Save channel TS, topic set time and set by informationGravatar attilamolnar2013-08-271-15/+20
| | | | | | | | When loading, ignore and log channels with a name longer than Limits.MaxChan
| * m_permchannels Construct the final line that will be saved in a std::string ↵Gravatar attilamolnar2013-08-271-7/+10
| | | | | | | | in WriteDatabase()
* | Clean up the protocol interfaceGravatar attilamolnar2013-08-251-1/+1
| |
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
| |
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-1/+1
| |
* | Modify the log message to contain the log type.Gravatar Peter Powell2013-08-041-4/+4
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-7/+7
| | | | | | | | | | | | | | | | The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them.
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
| |
* | Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() ↵Gravatar attilamolnar2013-07-011-38/+31
| | | | | | | | with ModeHandlers, part 1
* | Always set the topic in Channel::SetTopic(), move access checks into cmd_topicGravatar attilamolnar2013-06-161-1/+1
| |
* | Use iostream instead of C-style file operations.Gravatar Peter Powell2013-06-061-53/+21
| |
* | Reduce User* -> Membership* lookups on part and kickGravatar attilamolnar2013-06-041-4/+1
| |
* | Remove NULL checks from various Channel functionsGravatar attilamolnar2013-06-041-1/+1
| | | | | | | | Passing NULL to these functions are not permitted and must be avoided by the caller
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-4/+4
| |
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-7/+7
| | | | | | | | | | - 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.
* | Merge insp20Gravatar attilamolnar2013-04-281-8/+32
|\|
| * m_permchannels Workaround for alphabetical module initialization orderGravatar attilamolnar2013-04-211-8/+32
| | | | | | | | | | | | | | Read database after all modules have been inited Add exception logging Fixes #485 reported by @gholms
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-6/+6
|/
* m_permchannels Load channels from the config only at module load time and ↵Gravatar attilamolnar2013-03-201-5/+15
| | | | only when there are no linked servers to avoid desync
* 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
* Issue #346 - fix m_permchannels.cpp and m_xline_db.cpp saving their ↵Gravatar Adam2012-10-271-0/+8
| | | | databases on Windows due to rename() failing if the destination file exists
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
|
* Fix misspellingGravatar danieldg2010-02-281-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12572 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a short message at the top of permchannel DB, and ensure config format ↵Gravatar danieldg2010-02-231-0/+1
| | | | | | is compat git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12544 e03df62e-2008-0410-955e-edbf42e46eb7
* Delete 0-user permanent channels that are being set -PGravatar danieldg2010-02-161-22/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12475 e03df62e-2008-0410-955e-edbf42e46eb7