bugfix sed empty string
This commit is contained in:
parent
3c1c95aa3a
commit
2c70f5930b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user