Using utils.depluralize now instead of my previous hack

This commit is contained in:
James Vega 2003-10-18 14:21:03 +00:00
parent 29a3264126
commit e1d1343055

View File

@ -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: