From a883b616a1360ba74254661cbd39280404d1753a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 10 Apr 2025 13:06:37 +0100 Subject: Automatically line wrap messages sent by services. --- include/textproc.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/textproc.h (limited to 'include') diff --git a/include/textproc.h b/include/textproc.h new file mode 100644 index 000000000..62c88bcb4 --- /dev/null +++ b/include/textproc.h @@ -0,0 +1,24 @@ +/* + * + * (C) 2003-2025 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + +#pragma once + +class TextSplitter final +{ +private: + Anope::string text; + std::vector formatting; + +public: + TextSplitter(const Anope::string &t); + bool GetLine(Anope::string &out); +}; + -- cgit