Skip to content

Commit fc3a791

Browse files
committed
Do not let figlet interpret - as args
1 parent 3dc5c5e commit fc3a791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/figlet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ def init(self):
88
self.add_event_handler('private_say', self.figletize)
99

1010
def figletize(self, msg, tab):
11-
process = subprocess.Popen(['figlet', msg['body']], stdout=subprocess.PIPE)
11+
process = subprocess.Popen(['figlet', '--', msg['body']], stdout=subprocess.PIPE)
1212
result = process.communicate()[0].decode('utf-8')
1313
msg['body'] = result

0 commit comments

Comments
 (0)