🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-07-29 23:11:29.0 +01:00:00
committer Jordan Doyle <jordan@doyle.wf> 2017-07-29 23:11:29.0 +01:00:00
commit
d954b1a8572c10bd7ab5682d1bcdd95e2ec8e767 [patch]
tree
29f06fd6fa2ddc9ec8675549cfc4aeb5dc7e1203
parent
84f13894f65d33f5cf091c77e7b828b806af4436
download
d954b1a8572c10bd7ab5682d1bcdd95e2ec8e767.tar.gz

Fix sed replying even if it didn't match anything



Diff

 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