Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usernames with underscores in quiz name #24

Merged
merged 2 commits into from
Jul 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions thebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def ping(bot: Bot, update: Update):
@core.not_pm
def do_the_sрin(bot: Bot, update: Update):
chat_id = update.message.chat_id
s = escape_markdown(core.spin_name.get(chat_id, config.DEFAULT_SPIN_NAME))
s = core.spin_name.get(chat_id, config.DEFAULT_SPIN_NAME).replace('*', '\\*')
p = core.results_today.get(chat_id)
if p is None or chat_id in locks:
return
Expand All @@ -251,7 +251,7 @@ def do_the_sрin(bot: Bot, update: Update):
@core.not_pm
def do_the_spin(bot: Bot, update: Update):
chat_id = update.message.chat_id
s = escape_markdown(core.spin_name.get(chat_id, config.DEFAULT_SPIN_NAME))
s = core.spin_name.get(chat_id, config.DEFAULT_SPIN_NAME).replace('*', '\\*')
p = core.results_today.get(chat_id)
if chat_id in locks:
return
Expand Down