aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/xmpp.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-24 16:58:53 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-24 16:58:53 +0100
commitc22a82f711abc51eebced905588c9527a9db8895 (patch)
tree47d984c14c2abada15a5ab272bdf437575f4dbc1 /lib/mauve/notifiers/xmpp.rb
parent3c5e1562c73b0004a86b8c68871dcf3d62726e6d (diff)
Reinstated fortune. Woo!
Diffstat (limited to 'lib/mauve/notifiers/xmpp.rb')
-rw-r--r--lib/mauve/notifiers/xmpp.rb2
1 files changed, 1 insertions, 1 deletions
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