From c22a82f711abc51eebced905588c9527a9db8895 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 24 Aug 2011 16:58:53 +0100 Subject: Reinstated fortune. Woo! --- lib/mauve/notifiers/xmpp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/mauve/notifiers/xmpp.rb b/lib/mauve/notifiers/xmpp.rb index 029e4fc..38d7242 100644 --- a/lib/mauve/notifiers/xmpp.rb +++ b/lib/mauve/notifiers/xmpp.rb @@ -449,7 +449,7 @@ module Mauve when /ack/i do_parse_ack(msg) else - "Sorry. I don't understand. Try asking me for help" + File.executable?('/usr/games/fortune') ? `/usr/games/fortune -s -n 60`.chomp : "Sorry. I don't understand. Try asking me for help." end end -- cgit v1.2.1