A first attempt to make dialogue capability for module

This commit is contained in:
Blue 2025-04-01 19:46:35 +03:00
parent 8187d045cd
commit ab9a0af05e
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 190 additions and 30 deletions

View file

@ -47,3 +47,7 @@ std::string_view Module::Module::pop(std::string_view& input, char delimiter) {
return token;
}
void Module::Module::cancelDialog(const std::shared_ptr<::Actor>& actor) {
warn("Dialog with " + actor->jid + " was requested to be canceled, but this module doesn't handle canceling dialogs");
}

View file

@ -32,6 +32,7 @@ public:
static std::string_view pop(std::string_view& input, char delimiter = ' ');
virtual Shared::Result message(const std::shared_ptr<::Actor>& actor, std::string_view view) = 0;
virtual void cancelDialog(const std::shared_ptr<::Actor>& actor);
public:
const std::string name;