Check for the unknown author and special case accordingly

This commit is contained in:
Kevin Murphy 2005-02-23 18:17:01 +00:00
parent 5e5e2f3336
commit 48c472d493

View File

@ -147,9 +147,10 @@ class Plugin(callbacks.Plugin):
hasAuthor = False hasAuthor = False
hasContribs = False hasContribs = False
if getattr(module, '__author__', None): if getattr(module, '__author__', None):
author = 'was written by %s' % \ if module.__author__ != supybot.authors.unknown:
utils.web.mungeEmail(str(module.__author__)) author = 'was written by %s' % \
hasAuthor = True utils.web.mungeEmail(str(module.__author__))
hasAuthor = True
if getattr(module, '__contributors__', None): if getattr(module, '__contributors__', None):
contribs = sortAuthors() contribs = sortAuthors()
if hasAuthor: if hasAuthor: