summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/request.hpp2
-rw-r--r--src/commands/request_util.cpp2
-rw-r--r--src/commands/request_util.hpp2
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);
}