Throw out mungeEmail for supybot.Author

This has limited value these days, because 1) the email info for authors is most often in a public VCS already 2) it makes using the actual contact info harder.
This commit is contained in:
James Lu 2019-10-19 09:57:13 -07:00
parent 00b2e9c97a
commit 18f9a342b3
2 changed files with 3 additions and 5 deletions

View File

@ -181,8 +181,7 @@ class Plugin(callbacks.Plugin):
hasContribs = False hasContribs = False
if hasattr(module, '__author__'): if hasattr(module, '__author__'):
if module.__author__ != supybot.authors.unknown: if module.__author__ != supybot.authors.unknown:
author = _('was written by %s') % \ author = _('was written by %s') % str(module.__author__)
utils.web.mungeEmail(str(module.__author__))
hasAuthor = True hasAuthor = True
if hasattr(module, '__contributors__'): if hasattr(module, '__contributors__'):
contribs = sortAuthors() contribs = sortAuthors()
@ -218,7 +217,7 @@ class Plugin(callbacks.Plugin):
if not authorInfo: if not authorInfo:
return _('The nick specified (%s) is not a registered ' return _('The nick specified (%s) is not a registered '
'contributor.') % nick 'contributor.') % nick
fullName = utils.web.mungeEmail(str(authorInfo)) fullName = str(authorInfo)
contributions = [] contributions = []
if hasattr(module, '__contributors__'): if hasattr(module, '__contributors__'):
if authorInfo not in module.__contributors__: if authorInfo not in module.__contributors__:

View File

@ -47,8 +47,7 @@ class Author(object):
self.email = email self.email = email
def __str__(self): def __str__(self):
return '%s (%s) <%s>' % (self.name, self.nick, return '%s (%s) <%s>' % (self.name, self.nick, self.email)
utils.web.mungeEmail(self.email))
class authors(object): # This is basically a bag. class authors(object): # This is basically a bag.
jemfinch = Author('Jeremy Fincher', 'jemfinch', 'jemfinch@users.sf.net') jemfinch = Author('Jeremy Fincher', 'jemfinch', 'jemfinch@users.sf.net')