summaryrefslogtreecommitdiff
path: root/plugins/figlet.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-10 10:47:45 +0200
committermathieui <mathieui@mathieui.net>2012-05-10 10:47:45 +0200
commitfc3a791188885d480c4d7a9fe23f209bfe35eb84 (patch)
tree0dd5b4538cf47cb3e092ef251292e14dec894750 /plugins/figlet.py
parent3dc5c5e5b597d96aef3f7f8886316a9c76849789 (diff)
downloadpoezio-fc3a791188885d480c4d7a9fe23f209bfe35eb84.tar.gz
poezio-fc3a791188885d480c4d7a9fe23f209bfe35eb84.tar.bz2
poezio-fc3a791188885d480c4d7a9fe23f209bfe35eb84.tar.xz
poezio-fc3a791188885d480c4d7a9fe23f209bfe35eb84.zip
Do not let figlet interpret - as args
Diffstat (limited to 'plugins/figlet.py')
-rw-r--r--plugins/figlet.py2
1 files changed, 1 insertions, 1 deletions
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