From 48c472d493dd85f996f23eecf2df97c29e1ae952 Mon Sep 17 00:00:00 2001 From: Kevin Murphy Date: Wed, 23 Feb 2005 18:17:01 +0000 Subject: [PATCH] Check for the unknown author and special case accordingly --- plugins/Plugin/plugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/Plugin/plugin.py b/plugins/Plugin/plugin.py index 535c1ae6e..f978b0595 100644 --- a/plugins/Plugin/plugin.py +++ b/plugins/Plugin/plugin.py @@ -147,9 +147,10 @@ class Plugin(callbacks.Plugin): hasAuthor = False hasContribs = False if getattr(module, '__author__', None): - author = 'was written by %s' % \ - utils.web.mungeEmail(str(module.__author__)) - hasAuthor = True + if module.__author__ != supybot.authors.unknown: + author = 'was written by %s' % \ + utils.web.mungeEmail(str(module.__author__)) + hasAuthor = True if getattr(module, '__contributors__', None): contribs = sortAuthors() if hasAuthor: