From 09d8506f82cab613a7fead41328d501cadd5135a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 3 Jan 2013 08:35:03 +0100 Subject: Use symbols for module configuration keys --- modules/Fortune.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3