Add [] around $0

This commit is contained in:
Juhani Krekelä 2019-05-11 20:34:15 +03:00
parent ad02585819
commit b4157536bd
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@ import enum
import random
from collections import namedtuple
# TODO: !redeal
# TODO: offtopia-norandom preset
import cardcast_api
class events(enum.Enum):
@ -638,7 +641,7 @@ def game(send, notice, voice, devoice, get_event):
index = int(char)
if 0 <= index < len(responses):
r.append(responses[index])
r.append('[' + responses[index] + ']')
else:
# Not valid backreference, copy verbatim
r.append('$' + char)