aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_xline_db.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix some remaining uses of ato[il].Gravatar Peter Powell2019-08-131-2/+2
|
* Switch permchannels and xline_db from OnBackgroundTimer to a Timer.Gravatar Peter Powell2019-06-251-2/+13
|
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-1/+1
|
* Improve the handling of config X-lines and filters. (#1583)Gravatar Matt Schatz2019-02-221-2/+7
|
* Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.Gravatar Peter Powell2018-08-101-1/+1
| | | | | This simplifies the logic of irc::tokenparser considerably and removes all of the magic index guessing that was used previously.
* Switch m_xline_db to use the xline snomask character.Gravatar Peter Powell2018-08-101-6/+6
|
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-1/+1
|\
| * Fix m_xline_db storing the wrong setter in the XLine database.Gravatar Peter Powell2017-12-151-1/+1
| |
* | m_xline_db Don't flush database when an xline expiresGravatar Attila Molnar2015-12-181-5/+0
| |
* | Fix xline reasons being truncated in m_xline_db.Gravatar Peter Powell2015-01-291-1/+1
| | | | | | | | This error was introduced in bbeb5ea3.
* | Differ database error messages for m_permchannels and m_xline_dbGravatar Justin Crawford2014-07-291-8/+8
| | | | | | | | | | | | | | | | 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
* | Remove whitespace and minor style changesGravatar Attila Molnar2014-01-231-1/+1
| |
* | Move stuff around a bit:Gravatar Peter Powell2013-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | - 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.
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-1/+1
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | Add <path> keys for all of the compile-time paths.Gravatar Peter Powell2013-08-121-1/+1
| | | | | | | | | | | | 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.
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
| |
* | Modify the log message to contain the log type.Gravatar Peter Powell2013-08-041-10/+10
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-10/+10
| | | | | | | | | | | | | | | | 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 a few not-so-useful debug messagesGravatar attilamolnar2013-08-041-5/+1
| |
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-4/+0
| |
* | Use iostream instead of C-style file operations.Gravatar Peter Powell2013-06-061-52/+26
| |
* | Merge pull request #545 from SaberUK/master+logging-cleanupGravatar Attila Molnar2013-05-211-11/+11
|\ \ | | | | | | Clean up the logging system (part 1 of 2).
| * | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-11/+11
| | |
* | | Convert XLine::Displayable to return a std::string.Gravatar Peter Powell2013-05-211-2/+6
|/ /
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-6/+6
| | | | | | | | | | - 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.
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-11/+11
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-7/+0
|/
* m_xline_db Fix pointless excessive stack usage in ReadDatabase()Gravatar attilamolnar2013-03-251-5/+2
|
* m_xline_db Major enhancementsGravatar attilamolnar2013-03-251-33/+26
| | | | | - Save database on a timer, not on every single change - Use the internal database instead of keeping track of xlines ourselves
* 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
* Attach to events and register services in init()Gravatar attilamolnar2012-12-021-1/+2
|
* 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 hardcoded paths with configurable onesGravatar ChrisTX2012-10-041-3/+16
| | | | | | | | | | 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.
* Revert m_xline_db Get the xlines from the core, don't maintain a seperate ↵Gravatar attilamolnar2012-07-131-12/+16
| | | | list (reverse-merged from commit 183b182b3d6c0c32f4d10e131a55adbf54b8be01)
* m_xline_db Fix memory leak when adding a loaded xline failsGravatar attilamolnar2012-07-011-0/+2
|
* m_xline_db Get the xlines from the core, don't maintain a seperate listGravatar attilamolnar2012-07-011-16/+12
|
* Debian typo fixes.Gravatar Peter Powell2012-05-251-1/+1
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
|
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove dummy API_VERSION from Version constructorGravatar danieldg2009-10-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to new execution directory structureGravatar danieldg2009-10-131-3/+3
| | | | | | | | 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
* Get rid of a bunch of memory-wasting C-style stringsGravatar danieldg2009-10-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Describe module purpose in /MODULES outputGravatar danieldg2009-09-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
* Introduce "X" snomask for remote *:line messages [patch by jackmcbarn]Gravatar danieldg2009-09-141-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11721 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove calls to strdup() in core, it is not better than std::stringGravatar danieldg2009-09-021-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11623 e03df62e-2008-0410-955e-edbf42e46eb7
* More deallocation-at-exit cleanupGravatar danieldg2009-09-021-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11621 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7