summaryrefslogtreecommitdiff
path: root/src/handlers.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-30 01:16:41 +0500
committerilotterytea <iltsu@alright.party>2024-04-30 01:16:41 +0500
commit2064d219e19550cd885bee103a06e3f1cb7bc8e2 (patch)
tree51265bee92ae413322bc2972204157ab5ad05aaf /src/handlers.hpp
parentd6e04fc50423601e33cbf73baf67a4e48c9f8787 (diff)
feat: create a new db connection for each message and pass work to it
Diffstat (limited to 'src/handlers.hpp')
-rw-r--r--src/handlers.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/handlers.hpp b/src/handlers.hpp
index ed74551..33b57b2 100644
--- a/src/handlers.hpp
+++ b/src/handlers.hpp
@@ -3,10 +3,12 @@
#include "bundle.hpp"
#include "commands/command.hpp"
#include "irc/message.hpp"
+#include "pqxx/pqxx"
namespace bot::handlers {
void handle_private_message(
const InstanceBundle &bundle,
const command::CommandLoader &command_loader,
- const irc::Message<irc::MessageType::Privmsg> &message);
+ const irc::Message<irc::MessageType::Privmsg> &message,
+ const pqxx::work &work);
}