A first attempt to make dialogue capability for module
This commit is contained in:
parent
8187d045cd
commit
ab9a0af05e
8 changed files with 190 additions and 30 deletions
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue