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

View File

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