aboutsummaryrefslogtreecommitdiff
path: root/ponysay.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-18 17:59:53 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-18 17:59:53 +0200
commit57ceac45a4891e0045c0aec91902ca6741ccf274 (patch)
tree3f8ab6941c50983f97ad64cebcab3d64bf0b4d5f /ponysay.py
parent1dc737fb8b51e224ed29e60ae3c1751e3d54f31f (diff)
downloadponysay-57ceac45a4891e0045c0aec91902ca6741ccf274.tar.gz
ponysay-57ceac45a4891e0045c0aec91902ca6741ccf274.tar.bz2
ponysay-57ceac45a4891e0045c0aec91902ca6741ccf274.zip
Message can now contain ':s
Diffstat (limited to 'ponysay.py')
-rwxr-xr-xponysay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay.py b/ponysay.py
index 1714e77..a55fbca 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -331,7 +331,7 @@ class ponysay():
if linuxvt:
print('\033[H\033[2J', end='')
- os.system(cmd + (' -W ' + args.wrap if args.wrap is not None else '') + ' -f ' + pony + ' \'' + msg + '\'')
+ os.system(cmd + (' -W ' + args.wrap if args.wrap is not None else '') + ' -f ' + pony + ' \'' + msg.replace('\'', '\'\\\'\'') + '\'')