1
0
mirror of https://github.com/sys-fs/seddy synced 2024-11-25 20:47:51 -05:00

Remove references to haiku

This commit is contained in:
Thomas Mannay 2018-01-23 18:57:23 +00:00 committed by GitHub
parent 6e8cc1681e
commit ccff7d408c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,13 +70,13 @@ def seddy(sed, history, parser):
regex = parser.split(sed)
if len(regex) < 4:
return choice(haiku)
return False
if 'i' in regex[3]:
f |= re.I
try:
msg = history.find(regex[1], f)
except:
return choice(haiku)
return False
if "g" in regex[3]:
res = msg_replace(regex[1], regex[2], msg, 0, f)
else: