Message can now contain ':s

This commit is contained in:
Mattias Andrée 2012-08-18 17:59:53 +02:00
parent 1dc737fb8b
commit 57ceac45a4

View file

@ -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('\'', '\'\\\'\'') + '\'')