Add [] around $0
This commit is contained in:
parent
ad02585819
commit
b4157536bd
|
@ -2,6 +2,9 @@ import enum
|
||||||
import random
|
import random
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
# TODO: !redeal
|
||||||
|
# TODO: offtopia-norandom preset
|
||||||
|
|
||||||
import cardcast_api
|
import cardcast_api
|
||||||
|
|
||||||
class events(enum.Enum):
|
class events(enum.Enum):
|
||||||
|
@ -638,7 +641,7 @@ def game(send, notice, voice, devoice, get_event):
|
||||||
index = int(char)
|
index = int(char)
|
||||||
|
|
||||||
if 0 <= index < len(responses):
|
if 0 <= index < len(responses):
|
||||||
r.append(responses[index])
|
r.append('[' + responses[index] + ']')
|
||||||
else:
|
else:
|
||||||
# Not valid backreference, copy verbatim
|
# Not valid backreference, copy verbatim
|
||||||
r.append('$' + char)
|
r.append('$' + char)
|
||||||
|
|
Loading…
Reference in New Issue