littre: allow character ç
authorMikael Berthe <mikael@lilotux.net>
Sun, 23 Oct 2011 13:55:54 +0200
changeset 55 7f235c928661
parent 54 be04d7241ef6
child 56 a7c6c2b3454b
littre: allow character ç
mcbot/cmds/littre.lua
--- a/mcbot/cmds/littre.lua	Sun Oct 23 13:54:17 2011 +0200
+++ b/mcbot/cmds/littre.lua	Sun Oct 23 13:55:54 2011 +0200
@@ -4,7 +4,7 @@
 function littre.cmd (args)
     if not args then return nil, "Give me a word, please" end
     -- Be careful as we pass it as an argument to a shell command
-    local word = string.match(args, "^([%wàäâéèëêïîöôùüû]+)[%s%?%.%!]*$")
+    local word = string.match(args, "^([%wàäâéèëêïîöôùüûç]+)[%s%?%.%!]*$")
     if not word then return nil, "Can you repeat please?" end
 
     local cmd = "/usr/bin/sdcv "..word.." 2> /dev/null"