Module creation, message routing

This commit is contained in:
Blue 2025-03-07 23:20:06 +02:00
parent bc2dc9bf07
commit c605b3ba93
Signed by: blue
GPG key ID: 9B203B252A63EE38
14 changed files with 154 additions and 26 deletions

View file

@ -3,12 +3,13 @@
#include "actor.h"
Module::Actor::Actor():
Module()
Module::Actor::Actor(const std::shared_ptr<gloox::Client>& client):
Module(client)
{}
Module::Actor::~Actor() noexcept {}
void Module::Actor::message(const std::string& text) {
void Module::Actor::message(const std::shared_ptr<::Actor>& actor, const Module::Module::Tokens& args) {
if (args.front() == "list")
sendMessage(actor, "Me\nMyself\nI");
}