mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
String: make levenshtein command threaded, since it can take a nontrivial amount of time with longer inputs.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
34e5aedc45
commit
92be7c255f
@ -105,7 +105,7 @@ class String(callbacks.Plugin):
|
||||
'it with some smaller inputs.')
|
||||
else:
|
||||
irc.reply(str(utils.str.distance(s1, s2)))
|
||||
levenshtein = wrap(levenshtein, ['something', 'text'])
|
||||
levenshtein = thread(wrap(levenshtein, ['something', 'text']))
|
||||
|
||||
def soundex(self, irc, msg, args, text, length):
|
||||
"""<string> [<length>]
|
||||
|
Loading…
Reference in New Issue
Block a user