From 984fa1addf3b0ad694978d244ccd73123ca30608 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 21 Jul 2010 22:38:33 +0200 Subject: Allow setting parameters for fortune in config file --- modules/fortune.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/fortune.py b/modules/fortune.py index e7c999e..09e2e41 100644 --- a/modules/fortune.py +++ b/modules/fortune.py @@ -17,4 +17,4 @@ class Module(ModuleBase): if not re.match(r'!fortune(?:\W|\Z)', text): return - handler.reply(subprocess.Popen([self.fortune], stdout=subprocess.PIPE).communicate()[0].strip()) + handler.reply(subprocess.Popen(self.fortune, stdout=subprocess.PIPE).communicate()[0].strip()) -- cgit v1.2.3