summaryrefslogtreecommitdiff
path: root/include/textproc.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-10 13:06:37 +0100
committerSadie Powell <sadie@witchery.services>2025-04-15 19:30:59 +0100
commita883b616a1360ba74254661cbd39280404d1753a (patch)
treeb58c7913ea6a2c3a78b4edb79cd64b465e101b99 /include/textproc.h
parentb421ba258e4332d512edab35ddc3e6e41e297381 (diff)
Automatically line wrap messages sent by services.
Diffstat (limited to 'include/textproc.h')
-rw-r--r--include/textproc.h24
1 files changed, 24 insertions, 0 deletions
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<Anope::string> formatting;
+
+public:
+ TextSplitter(const Anope::string &t);
+ bool GetLine(Anope::string &out);
+};
+