mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
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:
parent
00b2e9c97a
commit
18f9a342b3
@ -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__:
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user