summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-29 21:56:14 +0000
committerSadie Powell <sadie@witchery.services>2024-02-29 21:56:14 +0000
commit1c1645096f953aa06b5809be6b302015b5bc73d6 (patch)
treebe03513aa05c44ea017ca4ecb1e6c497dd231857 /include
parente0ac5509b4020cb6e78c6b7c591ef2e7f6314ced (diff)
If a user runs an invalid command try to suggest a valid one.
Diffstat (limited to 'include')
-rw-r--r--include/anope.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h
index 6031dceac..1a01db189 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -557,6 +557,12 @@ namespace Anope
* @param len The length of the string returned
*/
extern CoreExport Anope::string Random(size_t len);
+
+ /** Calculates the levenshtein distance between two strings.
+ * @param s1 The first string.
+ * @param s2 The second string.
+ */
+ extern CoreExport size_t Distance(const Anope::string &s1, const Anope::string &s2);
}
/** sepstream allows for splitting token separated lists.