From 481ce8b484785d9d82cc875bf324c8441a3bed65 Mon Sep 17 00:00:00 2001 From: Tiago Danin Date: Sun, 17 Jan 2016 10:22:18 -0300 Subject: [PATCH] Fixed bug furtune Fixed bug furtune: To message: "fortune: not found" --- plugins/fortune.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fortune.lua b/plugins/fortune.lua index 95c4f56..9c3f612 100755 --- a/plugins/fortune.lua +++ b/plugins/fortune.lua @@ -1,7 +1,7 @@ -- Requires that the "fortune" program is installed on your computer. local s = io.popen('fortune'):read('*all') -if s:match('fortune: command not found') then +if s:match('fortune: command not found') or ('fortune: not found') then print('fortune is not installed on this computer.') print('fortune.lua will not be enabled.') return