mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Munge Author's email in __str__ instead of relying on munging the results of Author.__str__
This commit is contained in:
parent
1be3d7f159
commit
c3cacbce76
@ -100,7 +100,7 @@ class Plugin(callbacks.Plugin):
|
||||
return
|
||||
module = cb.classModule
|
||||
if hasattr(module, '__author__') and module.__author__:
|
||||
irc.reply(utils.web.mungeEmail(str(module.__author__)))
|
||||
irc.reply(str(module.__author__))
|
||||
else:
|
||||
irc.reply('That plugin doesn\'t have an author that claims it.')
|
||||
author = wrap(author, [('plugin')])
|
||||
|
@ -43,7 +43,8 @@ class Author(object):
|
||||
self.email = email
|
||||
|
||||
def __str__(self):
|
||||
return '%s (%s) <%s>' % (self.name, self.nick, self.email)
|
||||
return '%s (%s) <%s>' % (self.name, self.nick,
|
||||
utils.web.mungeEmail(self.email))
|
||||
|
||||
class authors(object): # This is basically a bag.
|
||||
jemfinch = Author('Jeremy Fincher', 'jemfinch', 'jemfinch@users.sf.net')
|
||||
|
Loading…
Reference in New Issue
Block a user