fortune plugin: fix autodetection
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 8 Jan 2009 15:36:26 +0000 (16:36 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 8 Jan 2009 15:36:26 +0000 (16:36 +0100)
commit3449fbea22b9eae423b60db80cb35950a22e81a9
tree08dc63d7019ea07324b6c7af1b23e88e655ccbda
parentf6b6be3b0467b1880d13b89e50bdae027e7b0eb4
fortune plugin: fix autodetection

An empty String is not false in Ruby, so check for it properly. Also,
find_fortune needs a message passed to it, to be used when it discovers
the correct path.
data/rbot/plugins/fortune.rb