aboutsummaryrefslogtreecommitdiff
path: root/include/modules/sql.h
Commit message (Expand)AuthorAgeFilesLines
* Remove an extraneous semicolon in the SQL module header.Gravatar Sadie Powell2024-06-071-1/+1
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-2/+1
* Rework SQL::PopulateUserInfo.Gravatar Sadie Powell2024-02-191-10/+18
* Retain the "real" username properly like we do for hostnames.•••This introduces the concept of a real username. This value comes from either the initial USER message or from an ident lookup. Doing this allows us to use it for bans through vidents and cloaking web client users using their remote username. While changing this I also changed all of the uses of "ident" other than RFC 1413 lookups and some compatibility cases to refer to usernames as user(name) instead of ident. Our use of ident in these places was incorrect as that only refers to the RFC 1413 response and is not commonly used in the way we used it by any other IRC server implementations. Gravatar Sadie Powell2023-06-291-1/+4
* Refactor the caching methods in User and rename to make more sense.Gravatar Sadie Powell2023-01-241-1/+1
* More const correctness.Gravatar Sadie Powell2022-10-231-1/+1
* Merge branch 'insp3' into master.Gravatar Sadie Powell2022-10-131-0/+1
|\
| * Fix saving the database identifier in SQL::Provider.Gravatar Sadie Powell2022-10-071-0/+1
* | Fix more warnings discovered with -Weverything.Gravatar Sadie Powell2022-09-051-3/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-04-291-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2022-04-281-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-03-111-1/+1
|\|
| * Squash an unnecessary string copy in SQL::Error.Gravatar Sadie Powell2022-02-051-1/+1
* | Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-7/+7
* | Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-4/+7
* | Remove a bunch of unnecessary whitespace.Gravatar Sadie Powell2021-08-171-1/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-05-141-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-05-141-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-311-3/+3
|\|
| * Fix various documentation comments.Gravatar Sadie Powell2021-03-311-3/+3
* | Convert SQL::Field to be a typedef of optional<string>.Gravatar Sadie Powell2021-03-301-34/+3
* | Refactor classbase/CullResult into Cullable/Cullable::Result.Gravatar Sadie Powell2021-03-021-4/+4
* | Clean up a bunch of contructors and destructors.Gravatar Sadie Powell2020-11-011-3/+1
|/
* Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-1/+1
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-1/+4
* Update my name and email address.Gravatar Sadie Powell2019-12-311-1/+1
* Add GetId() to the SQL::Provider class.Gravatar Peter Powell2019-11-131-1/+8
* Rename User::fullname to realname and make it private.Gravatar Peter Powell2018-07-301-1/+1
* Replace most usages of "GECOS" with "real" or "real name".Gravatar Peter Powell2018-07-301-1/+1
* SQL: Add HasColumn() to check if a result contains a named column.Gravatar Daniel Vassdal2018-04-071-0/+9
* Fix building on Windows (mostly).Gravatar Peter Powell2018-02-171-1/+1
* Make InspIRCd::Format return std::string instead of const char*.•••Using the latter is problematic as if you don't copy the return value before calling Format again your formatted message will be overwritten by something else. This bug was observed in m_callerid where InspIRCd::Format was being used for formatting two arguments the latter of which was being overwritten with the former. We could have preserved the return type and just copied the string but then callers would have had to deallocate the string once they have finished with it which is an undesirabable burden to put on callers. Gravatar Peter Powell2018-01-031-6/+5
* Improve and modernize the SQL system API.•••- 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. Gravatar Peter Powell2017-12-221-80/+155
* Hide User#host and User#dhost and use accessors to modify them.•••This removes the need to invalidate the cache after changing a user's hostname. Gravatar Peter Powell2017-10-281-1/+1
* Introduce Server class•••- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine() Gravatar Attila Molnar2014-01-051-1/+1
* Tidy up source files:•••- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues. Gravatar Peter Powell2013-04-121-0/+184