diff options
| author | ilotterytea <iltsu@alright.party> | 2024-04-30 20:56:54 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-04-30 20:56:54 +0500 |
| commit | 184fcd5cb5bacd11271028c1031a7bfef4db48a2 (patch) | |
| tree | cab57979313878fab91b845511b60f43a092246b /src/commands | |
| parent | d0671a30c2b5ec41b131d229716045381332697d (diff) | |
upd: replaced work to connection
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/request.hpp | 2 | ||||
| -rw-r--r-- | src/commands/request_util.cpp | 2 | ||||
| -rw-r--r-- | src/commands/request_util.hpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/request.hpp b/src/commands/request.hpp index ee7bd11..efa0655 100644 --- a/src/commands/request.hpp +++ b/src/commands/request.hpp @@ -12,6 +12,6 @@ namespace bot::command { std::optional<std::string> subcommand_id; std::optional<std::string> message; const irc::Message<irc::MessageType::Privmsg> &irc_message; - const pqxx::work &work; + pqxx::connection &conn; }; } diff --git a/src/commands/request_util.cpp b/src/commands/request_util.cpp index 1262a3d..08e958a 100644 --- a/src/commands/request_util.cpp +++ b/src/commands/request_util.cpp @@ -12,7 +12,7 @@ namespace bot::command { std::optional<Request> generate_request( const command::CommandLoader &command_loader, const irc::Message<irc::MessageType::Privmsg> &irc_message, - const pqxx::work &work) { + pqxx::connection &conn) { std::vector<std::string> parts = utils::string::split_text(irc_message.message, ' '); diff --git a/src/commands/request_util.hpp b/src/commands/request_util.hpp index 3d9831d..dea6e12 100644 --- a/src/commands/request_util.hpp +++ b/src/commands/request_util.hpp @@ -9,5 +9,5 @@ namespace bot::command { std::optional<Request> generate_request( const command::CommandLoader &command_loader, const irc::Message<irc::MessageType::Privmsg> &irc_message, - const pqxx::work &work); + pqxx::connection &conn); } |
