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
|
return
|
||||||
module = cb.classModule
|
module = cb.classModule
|
||||||
if hasattr(module, '__author__') and module.__author__:
|
if hasattr(module, '__author__') and module.__author__:
|
||||||
irc.reply(utils.web.mungeEmail(str(module.__author__)))
|
irc.reply(str(module.__author__))
|
||||||
else:
|
else:
|
||||||
irc.reply('That plugin doesn\'t have an author that claims it.')
|
irc.reply('That plugin doesn\'t have an author that claims it.')
|
||||||
author = wrap(author, [('plugin')])
|
author = wrap(author, [('plugin')])
|
||||||
|
@ -43,8 +43,9 @@ class Author(object):
|
|||||||
self.email = email
|
self.email = email
|
||||||
|
|
||||||
def __str__(self):
|
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.
|
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')
|
||||||
jamessan = Author('James Vega', 'jamessan', 'jamessan@users.sf.net')
|
jamessan = Author('James Vega', 'jamessan', 'jamessan@users.sf.net')
|
||||||
|
Loading…
Reference in New Issue
Block a user