summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.rb.example2
-rw-r--r--modules/Fortune.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.rb.example b/config.rb.example
index a853746..995a262 100644
--- a/config.rb.example
+++ b/config.rb.example
@@ -8,7 +8,7 @@ module Lain
Modules = {
'Credits' => {},
'DDate' => {},
- 'Fortune' => { 'command' => '/usr/bin/fortune -a' },
+ 'Fortune' => { :command => '/usr/bin/fortune -a' },
'Help' => {},
'Topic' => {},
}
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