bugfix sed empty string

This commit is contained in:
iou1name 2020-09-09 19:33:53 -04:00
parent 3c1c95aa3a
commit 2c70f5930b

View File

@ -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)