mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-17 23:52:46 +01:00
Using utils.depluralize now instead of my previous hack
This commit is contained in:
parent
29a3264126
commit
e1d1343055
@ -245,10 +245,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
resp.append('%s' % i(s))
|
resp.append('%s' % i(s))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
if linktype.endswith('es'):
|
linktype = utils.depluralize(linktype)
|
||||||
linktype = linktype[:-2]
|
|
||||||
else:
|
|
||||||
linktype = linktype[:-1]
|
|
||||||
irc.reply(msg, '%s #%s: %s' % (ircutils.bold(linktype),
|
irc.reply(msg, '%s #%s: %s' % (ircutils.bold(linktype),
|
||||||
ircutils.bold(num), '; '.join(resp)))
|
ircutils.bold(num), '; '.join(resp)))
|
||||||
except AttributeError, e:
|
except AttributeError, e:
|
||||||
|
Loading…
Reference in New Issue
Block a user