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): def findandreplace(bot, trigger):
if trigger.is_privmsg: if trigger.is_privmsg:
return return
if not trigger.args[0]:
return
if not trigger.args[0].startswith('s') and trigger.args[0][-1] not in ':,': if not trigger.args[0].startswith('s') and trigger.args[0][-1] not in ':,':
return return
line = ' '.join(trigger.args) line = ' '.join(trigger.args)