.log -> .buffer, i missed this one!

This commit is contained in:
jesopo 2018-08-28 14:55:35 +01:00
parent b699c120a0
commit b62cd4be84

View file

@ -59,7 +59,7 @@ class Module(object):
for_user = event["user"].nickname if Utils.get_closest_setting(
event, "sed-sender-only", False
) else None
line = event["channel"].log.find(pattern, from_self=False,
line = event["channel"].buffer.find(pattern, from_self=False,
for_user=for_user, not_pattern=REGEX_SED)
if line:
new_message = re.sub(pattern, replace, line.message, count)