summaryrefslogtreecommitdiff
path: root/src/modules/m_xline_db.cpp
AgeCommit message (Collapse)Author
2020-04-24Update copyright headers.InspIRCd Robot
2020-04-21Fixes by misspell-fixerInspIRCd Robot
2020-04-10Update the module descriptions using mkversion.Sadie Powell
2020-04-09Set the minimum length to 1 for most config items with a default.Sadie Powell
2020-01-11Update copyright headers.InspIRCd Robot
2019-08-13Fix some remaining uses of ato[il].Peter Powell
2019-06-25Switch permchannels and xline_db from OnBackgroundTimer to a Timer.Peter Powell
2019-04-28Textual improvements and fixes such as typos, casing, etc. (#1612)Robby
2019-02-22Improve the handling of config X-lines and filters. (#1583)Matt Schatz
2018-08-10Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.Peter Powell
This simplifies the logic of irc::tokenparser considerably and removes all of the magic index guessing that was used previously.
2018-08-10Switch m_xline_db to use the xline snomask character.Peter Powell
2018-04-22Merge tag 'v2.0.26' into master.Peter Powell
2017-12-15Fix m_xline_db storing the wrong setter in the XLine database.Peter Powell
2015-12-18m_xline_db Don't flush database when an xline expiresAttila Molnar
2015-01-29Fix xline reasons being truncated in m_xline_db.Peter Powell
This error was introduced in bbeb5ea3.
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-01-23Remove whitespace and minor style changesAttila Molnar
2013-12-15Move stuff around a bit:Peter Powell
- Create FileSystem class: * Move ServerConfig::CleanFilename to FileSystem::GetFileName and rewrite. * Move ServerConfig::ExpandPath to FileSystem. * Move ServerConfig::FileExists to FileSystem. * Move ServerConfig::StartsWithWindowsDriveLetter to FileSystem. - Move FileReader to fileutils.cpp and fix documentation. - Move UserManager::DoBackgroundUserStuff to usermanager.cpp.
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-12Add <path> keys for all of the compile-time paths.Peter Powell
Also, make all paths in the config relative to their associated directory. This reverts a change in 2.0 which turned out to be a terrible idea, especially for system-wide installations.
2013-08-04Automatically attach modules to eventsattilamolnar
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-08-04Remove a few not-so-useful debug messagesattilamolnar
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-06Use iostream instead of C-style file operations.Peter Powell
2013-05-21Merge pull request #545 from SaberUK/master+logging-cleanupAttila Molnar
Clean up the logging system (part 1 of 2).
2013-05-21Convert XLine::Displayable to return a std::string.Peter Powell
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-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2013-03-25m_xline_db Fix pointless excessive stack usage in ReadDatabase()attilamolnar
2013-03-25m_xline_db Major enhancementsattilamolnar
- Save database on a timer, not on every single change - Use the internal database instead of keeping track of xlines ourselves
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-12-02Attach to events and register services in init()attilamolnar
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-10-04Replace hardcoded paths with configurable onesChrisTX
This patchset aims to ease the packaging of InspIRCd for a system-wide installation scenario. Changes in detail: configure: Add the options --log-path and --data-path m_ssl_gnutls, openssl: Change the hardcoded "conf/" to the existent CONFIG_PATH macro m_xline_db: Make the location of xline.db configurable. It will use --data-path as default value, but this can be changed using the configuration files.
2012-07-13Revert m_xline_db Get the xlines from the core, don't maintain a seperate ↵attilamolnar
list (reverse-merged from commit 183b182b3d6c0c32f4d10e131a55adbf54b8be01)
2012-07-01m_xline_db Fix memory leak when adding a loaded xline failsattilamolnar
2012-07-01m_xline_db Get the xlines from the core, don't maintain a seperate listattilamolnar
2012-05-25Debian typo fixes.Peter Powell
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
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
2009-10-17Remove dummy API_VERSION from Version constructordanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-13Change to new execution directory structuredanieldg
Don't change CWD into bin/ Remove path-resolution hacks from configuration Store pidfile and xline DBs in data, logs in logs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11866 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-03Get rid of a bunch of memory-wasting C-style stringsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26Remove InspIRCd* parameters and fieldsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7