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
1 changed files with 1 additions and 4 deletions

View File

@ -245,10 +245,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
resp.append('%s' % i(s))
except AttributeError:
pass
if linktype.endswith('es'):
linktype = linktype[:-2]
else:
linktype = linktype[:-1]
linktype = utils.depluralize(linktype)
irc.reply(msg, '%s #%s: %s' % (ircutils.bold(linktype),
ircutils.bold(num), '; '.join(resp)))
except AttributeError, e: