event.event_id => event.sender

This commit is contained in:
Will Hunt 2018-06-27 16:04:33 +01:00
parent ae6eb102b1
commit 2df75cec69

View file

@ -96,12 +96,12 @@ class ApplicationServicesHandler(object):
@defer.inlineCallbacks
def handle_event(event):
ev_domain = get_domain_from_id(event.event_id)
ev_domain = get_domain_from_id(event.sender)
if any(srv_re.match(ev_domain) is not None
for srv_re in self.server_blacklist):
logger.info(
"Ignoring %s from %s, matches server blacklist",
event.event_id,
event.sender,
ev_domain
)
return