diff --git a/GeoffreyBot/geoffrey_formatter.py b/GeoffreyBot/geoffrey_formatter.py index 2415f0b..083a421 100644 --- a/GeoffreyBot/geoffrey_formatter.py +++ b/GeoffreyBot/geoffrey_formatter.py @@ -11,7 +11,7 @@ def format_message(msg_format, *args): for char in chars_to_escape: arg = arg.replace(char, "\\" + char) - arg = re.sub(r"@(?!\s)", "\@", arg) + arg = re.sub(r"@(?!\s)", "\\@", arg) string_format_args.append(arg) msg = msg_format.format(*string_format_args)