Only bold if something was replaced
Diff
dave/modules/sed.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -26,8 +26,8 @@ def sed(bot, args, sender, source):
try:
toDisplay = re.sub(args[3], "\x02{}\x0F".format(args[5]), msg,
count=0 if 'g' in flags else 1, flags=f)
toDisplay = re.sub(args[3], "\x02{}\x0F".format(args[5]) if args[5] else "",
msg, count=0 if 'g' in flags else 1, flags=f)
toSave = re.sub(args[3], args[5], msg,
count=0 if 'g' in flags else 1, flags=f)
except Exception as e: