From d954b1a8572c10bd7ab5682d1bcdd95e2ec8e767 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 29 Jul 2017 23:11:29 +0100 Subject: [PATCH] Fix sed replying even if it didn't match anything --- dave/modules/sed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dave/modules/sed.py b/dave/modules/sed.py index 70b636e..10da8f0 100644 --- a/dave/modules/sed.py +++ a/dave/modules/sed.py @@ -28,7 +28,7 @@ "There was a problem with your sed command: {}".format(str(e))) return - if toDisplay.strip() != msg: + if toSave.strip() != msg: bot.msg(source, "<{}> {}".format(sender, toDisplay.strip())) dave.config.redis.lset(key, i, toSave.strip()) return -- rgit 0.1.3