diff -r 1818d56c8ff5 -r a2fe9ba3041a hgpoll.py --- a/hgpoll.py Mon Nov 10 02:11:57 2014 +0200 +++ b/hgpoll.py Mon Nov 10 02:30:31 2014 +0200 @@ -104,13 +104,6 @@ return result -def find_developer_by_email (commit_email): - for developer, emails in Config.get_value ('developer_emails', default={}).iteritems(): - if commit_email in emails: - return developer - - return '' - def poll(): global repocheck_timeout if time.time() < repocheck_timeout: @@ -222,7 +215,7 @@ commit_author = match.group (1) commit_email = match.group (2) - commit_trackeruser = find_developer_by_email (commit_email) + commit_trackeruser = Config.find_developer_by_email (commit_email) committer = commit_trackeruser if commit_trackeruser != '' else commit_author for irc_client in Irc.all_clients: