summaryrefslogtreecommitdiffstats
path: root/modules/Fortune.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/Fortune.rb')
-rw-r--r--modules/Fortune.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/Fortune.rb b/modules/Fortune.rb
index 85a5cba..9a762b4 100644
--- a/modules/Fortune.rb
+++ b/modules/Fortune.rb
@@ -8,7 +8,7 @@ module Lain
def on_message(muc, message)
return unless /\A!fortune\b/ =~ message.body
- muc.send(Jabber::Message.new(muc.room, "\n" + IO.popen(@config['command']).read.chomp))
+ muc.say("\nBEGIN FORTUNE COOKIE\n" + IO.popen(@config['command']).read.chomp + "\nEND FORTUNE COOKIE")
end
def commands