aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-1/+1
|
* Fix compatibility issues between sqloper and postgresGravatar B00mX0r2019-04-281-0/+1
|
* Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-131-1/+2
| | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* Remove the original line parameter of On{Pre,Post}Command.Gravatar Peter Powell2018-08-101-2/+2
| | | | | | | | | In the brave new world of message tags and alternate wire formats this is no longer something that is appropriate to expose. In reality it was only ever used by m_alias which now reconstitutes the command name and parameters into a RFC 1459-style message for whatever it needs to do.
* Use CommandBase::Params instead of std::vector<std::string>.Gravatar Peter Powell2018-07-261-3/+3
| | | | | This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
* Refactor m_sqloper to be a full opers.conf replacement (#983).Gravatar Dylan Frank2018-04-061-56/+139
| | | m_sqloper now supports dynamic fields, works with m_sslinfo, and works with /stats o.
* Improve and modernize the SQL system API.Gravatar Peter Powell2017-12-221-11/+14
| | | | | | | | | | | | | - Move everything into the SQL namespace and drop the SQL prefix. - Move SQLProvider::PopulateUserInfo to SQL::PopulateUserInfo. - Rename SQLEntry to SQL::Field and clean up. - Rename SQLEntries to SQL::Row. - Rename SQLerror to SQL::Error and clean up. - Rename SQLerrorNum to SQL::ErrorCode and drop the SQL_ prefix. - Rename ParamL to SQL::ParamList. - Rename ParamM to SQL::ParamMap; - Make implementing SQLQuery::OnError mandatory. - Redo most of the documentation in the sql header.
* Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-1/+1
| | | | | This removes the need to invalidate the cache after changing a user's hostname.
* m_sqloper.cpp: Add support for the `active` columnGravatar Daniel Vassdal2015-02-221-1/+1
| | | | | When active is true the user is allowed to log in. When it is FALSE, he is not. 2.0 users must alter their table (or view) so that it contains this field.
* Hashing: Redo APIGravatar Daniel Vassdal2014-08-041-1/+1
| | | | | | | * Don't assume the printable output of hashes is hex * Add virtual Compare() function, usable for KDFs like BCrypt Some changes and bugfixes are by @attilamolnar, original PR #767
* Move typedef OperIndex to ServerConfig::OperIndexGravatar Attila Molnar2014-07-161-1/+1
|
* Change allocation of InspIRCd::Parser to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | containing it
* Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-6/+1
| | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* Store oper types and opers in separate containersGravatar attilamolnar2013-08-131-2/+2
|
* Automatically attach modules to eventsGravatar attilamolnar2013-08-041-3/+0
|
* Modify the log message to contain the log type.Gravatar Peter Powell2013-08-041-5/+5
|
* Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-6/+6
| | | | | | | | 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
|
* Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-6/+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.
* Replace some C-isms with C++-isms.Gravatar Peter Powell2013-05-151-15/+1
| | | | | | * 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask.
* Tidy up source files:Gravatar Peter Powell2013-04-121-2/+2
| | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-6/+6
|
* Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-1/+0
|
* Remove some dead code:Gravatar Peter Powell2013-04-011-13/+0
| | | | | | - Conditions in m_httpd_stats which can never be true. - Commented out code in m_sqloper. - Unused macro in inspircd.h.
* Change User::GetIPString() to return const std::string&Gravatar attilamolnar2013-04-011-1/+1
|
* 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
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+14
|
* Handle database not present a bit better, add missing MySQL rehash on initGravatar danieldg2010-03-131-6/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12634 e03df62e-2008-0410-955e-edbf42e46eb7
* Change SQLv3 to format queries during submission, not beforeGravatar danieldg2010-03-131-4/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12633 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert pgsql to SQLv3Gravatar danieldg2010-03-131-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12626 e03df62e-2008-0410-955e-edbf42e46eb7
* Add column names to SQLv3, allow sqloper to specify its own query stringGravatar danieldg2010-03-061-11/+26
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12606 e03df62e-2008-0410-955e-edbf42e46eb7
* Add some useful logging output to m_sqloperGravatar danieldg2010-03-061-3/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12604 e03df62e-2008-0410-955e-edbf42e46eb7
* SQL API v3, drop all the ugly complexityGravatar danieldg2010-03-061-174/+85
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12602 e03df62e-2008-0410-955e-edbf42e46eb7
* Search for SQL service in init(), not in constructorGravatar danieldg2010-03-061-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12598 e03df62e-2008-0410-955e-edbf42e46eb7
* Add HMAC implementation to HashProviderGravatar danieldg2010-02-211-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12508 e03df62e-2008-0410-955e-edbf42e46eb7
* PreCommand/PostCommand are local-only hooksGravatar danieldg2010-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12291 e03df62e-2008-0410-955e-edbf42e46eb7
* ...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
* Use ServiceProvider for inter-module dependenciesGravatar danieldg2009-11-161-66/+10
| | | | | | | | | | | This will stop dependency chains from preventing module reloads when it is not actually needed; however, it removes some failsafes that will need to be reimplemented in order to avoid unmapped vtables. This deprecates Request as an inter-module signaling mechanism, although SQL still uses it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12140 e03df62e-2008-0410-955e-edbf42e46eb7
* Change User::oper to an OperInfo referenceGravatar danieldg2009-10-211-16/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11945 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix module unmapping with culled Module objectsGravatar danieldg2009-10-141-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11875 e03df62e-2008-0410-955e-edbf42e46eb7
* Update m_cloaking to use free-form keys instead of weakening the hash IVGravatar danieldg2009-10-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11820 e03df62e-2008-0410-955e-edbf42e46eb7
* Update Event and Request APIsGravatar danieldg2009-10-081-31/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compilation of some extras modulesGravatar danieldg2009-09-281-0/+325
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11776 e03df62e-2008-0410-955e-edbf42e46eb7