don't disregard matched backslashes before ampersand

This commit is contained in:
jesopo 2019-09-08 11:43:13 +01:00
parent 9e0934a47e
commit d0202ff809

View file

@ -63,7 +63,7 @@ class Module(ModuleManager.BaseModule):
if match:
replace = sed_split[2]
replace = replace.replace("\\/", "/")
replace = re.sub(SED_AMPERSAND, match.match, replace)
replace = re.sub(SED_AMPERSAND, "\\1%s" % match.match, replace)
replace = utils.irc.bold(replace)
new_message = re.sub(pattern, replace, match.line.message,