summaryrefslogtreecommitdiff
path: root/src/modules/m_permchannels.cpp
AgeCommit message (Collapse)Author
2016-08-29Convert ModeHandler::GetNumParams() to NeedsParam() that returns a boolAttila Molnar
2016-04-11Refactor topic setting logic to go through Channel::SetTopic() in all casesAttila Molnar
- 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
2014-07-29Differ database error messages for m_permchannels and m_xline_dbJustin Crawford
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.
2014-07-25Merge insp20Attila Molnar
2014-05-08Fix m_permchannels and m_xline_db on WindowsAdam
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
2014-03-14Add InspIRCd::GetChans(), remove ChannelCount()Attila Molnar
2014-03-14m_permchannels Remove pointless cleanup ceremony in cull()Attila Molnar
2014-03-07Fix m_permchannels not prepending the path when reading the config.Peter Powell
2014-02-21Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcntAttila Molnar
2014-01-23Remove whitespace and minor style changesAttila Molnar
2014-01-21Merge insp20Attila Molnar
2013-09-15Work around STB_GNU_UNIQUE symbols not allowing module unmapattilamolnar
2013-09-12Send ListModeBase modes implicitly on channel syncattilamolnar
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-30Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵attilamolnar
and on rehash This eliminates the need for calling OnRehash() in init()
2013-08-30Merge insp20attilamolnar
2013-08-28m_permchannels Fix empty topic setbyattilamolnar
2013-08-27m_permchannels Add the ability to save listmodesattilamolnar
2013-08-27m_permchannels Save channel TS, topic set time and set by informationattilamolnar
When loading, ignore and log channels with a name longer than Limits.MaxChan
2013-08-27m_permchannels Construct the final line that will be saved in a std::string ↵attilamolnar
in WriteDatabase()
2013-08-25Clean up the protocol interfaceattilamolnar
2013-08-04Automatically attach modules to eventsattilamolnar
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam
2013-08-04Modify the log message to contain the log type.Peter Powell
2013-08-04Change modules to use the MODNAME constant when logging.Peter Powell
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.
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-07-01Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() ↵attilamolnar
with ModeHandlers, part 1
2013-06-16Always set the topic in Channel::SetTopic(), move access checks into cmd_topicattilamolnar
2013-06-06Use iostream instead of C-style file operations.Peter Powell
2013-06-04Reduce User* -> Membership* lookups on part and kickattilamolnar
2013-06-04Remove NULL checks from various Channel functionsattilamolnar
Passing NULL to these functions are not permitted and must be avoided by the caller
2013-05-19Fix spacing in calls to LogManager::Log.Peter Powell
2013-05-15Tidy up keywords on module methods.Peter Powell
- 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.
2013-04-28Merge insp20attilamolnar
2013-04-21m_permchannels Workaround for alphabetical module initialization orderattilamolnar
Read database after all modules have been inited Add exception logging Fixes #485 reported by @gholms
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-03-20m_permchannels Load channels from the config only at module load time and ↵attilamolnar
only when there are no linked servers to avoid desync
2012-12-02Dynamically determine the size of the eventlist[] passed to Attach()attilamolnar
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
2012-10-27Issue #346 - fix m_permchannels.cpp and m_xline_db.cpp saving their ↵Adam
databases on Windows due to rename() failing if the destination file exists
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2010-02-28Fix misspellingdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12572 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-23Add a short message at the top of permchannel DB, and ensure config format ↵danieldg
is compat git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12544 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-16Delete 0-user permanent channels that are being set -Pdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12475 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-12Fix compilationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12447 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-12Write out the permchannels database on a timer, not on every mode changedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12446 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-01Mark +P mode as oper-only now that it no longer requires an explicit ↵danieldg
permission string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12343 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-31Remove duplicated permisison check for setting mode +P (it is already ↵danieldg
restricted in allowed chanmodes) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12338 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-19Clean up some slow iterationsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12300 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-15Remove VF_COMMON from mode-provider modules (no longer needed due to better ↵danieldg
CAPAB checking) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12263 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7