From fc3a791188885d480c4d7a9fe23f209bfe35eb84 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 10 May 2012 10:47:45 +0200 Subject: Do not let figlet interpret - as args --- plugins/figlet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/figlet.py b/plugins/figlet.py index 4d147956..0fda098e 100644 --- a/plugins/figlet.py +++ b/plugins/figlet.py @@ -8,6 +8,6 @@ class Plugin(BasePlugin): self.add_event_handler('private_say', self.figletize) def figletize(self, msg, tab): - process = subprocess.Popen(['figlet', msg['body']], stdout=subprocess.PIPE) + process = subprocess.Popen(['figlet', '--', msg['body']], stdout=subprocess.PIPE) result = process.communicate()[0].decode('utf-8') msg['body'] = result -- cgit v1.2.3