summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-03 08:35:03 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-03 08:35:03 +0100
commit09d8506f82cab613a7fead41328d501cadd5135a (patch)
tree487b53226ed4f5aa1ff202c6d44ea502733fc433 /modules
parentf003d5505d3e65c15e3e28a41c9402dbfee9ae8f (diff)
downloadlain-09d8506f82cab613a7fead41328d501cadd5135a.tar
lain-09d8506f82cab613a7fead41328d501cadd5135a.zip
Use symbols for module configuration keys
Diffstat (limited to 'modules')
-rw-r--r--modules/Fortune.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/Fortune.rb b/modules/Fortune.rb
index 9a762b4..2d4436b 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.say("\nBEGIN FORTUNE COOKIE\n" + IO.popen(@config['command']).read.chomp + "\nEND FORTUNE COOKIE")
+ muc.say("\nBEGIN FORTUNE COOKIE\n" + IO.popen(@config[:command]).read.chomp + "\nEND FORTUNE COOKIE")
end
def commands