Publishing now has a space for an article and a title. Also reduced amount of copying

This commit is contained in:
Blue 2025-03-31 18:46:40 +03:00
parent 98bfab4ba5
commit 8187d045cd
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 76 additions and 35 deletions

View file

@ -8,6 +8,7 @@
#include <vector>
#include <ranges>
#include <cctype>
#include <string_view>
#include "shared/definitions.h"
#include "shared/result.h"
@ -28,8 +29,9 @@ public:
virtual ~Module() noexcept;
static std::string lower(const std::string& text);
static std::string_view pop(std::string_view& input, char delimiter = ' ');
virtual Shared::Result message(const std::shared_ptr<::Actor>& actor, const Shared::Strings& args) = 0;
virtual Shared::Result message(const std::shared_ptr<::Actor>& actor, std::string_view view) = 0;
public:
const std::string name;