From 2c70f5930bec1fd1c86d1ba5e59bc0ac99c93fac Mon Sep 17 00:00:00 2001 From: iou1name Date: Wed, 9 Sep 2020 19:33:53 -0400 Subject: [PATCH] bugfix sed empty string --- modules/sed.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/sed.py b/modules/sed.py index 523448c..560a6ca 100755 --- a/modules/sed.py +++ b/modules/sed.py @@ -38,6 +38,8 @@ def collectlines(bot, trigger): def findandreplace(bot, trigger): if trigger.is_privmsg: return + if not trigger.args[0]: + return if not trigger.args[0].startswith('s') and trigger.args[0][-1] not in ':,': return line = ' '.join(trigger.args)