This commit is contained in:
Robert Gerus 2014-04-28 13:09:42 +02:00
parent 80002dff7f
commit 48ae14589d

View file

@ -1,6 +1,6 @@
Client.register_command("jan") { |args|
if not args[0].nil? then
if args[0].force_encoding("UTF-8") =~ /ał$/ then
if args[0].force_encoding("UTF-8") =~ /[euioa]ł$/ then
predicate = args[0]
object = File.readlines(Config[:commands][:jan][:object]).sample.strip
else